package org.acme; import org.eclipse.microprofile.rest.client.inject.RestClient; ... @Path("/") public class ExampleResource { @Inject @RestClient TracingService tracingService; @GET @Path("/todest1") @Produces(MediaType.TEXT_PLAIN) public String todest1(@HeaderParam("x-request-id") String requestId, @HeaderParam("x-b3-traceid") String traceId, @HeaderParam("x-b3-spanid") String spanId, @HeaderParam("x-b3-sampled") String sampled, @HeaderParam("x-b3-flags") String flags, @HeaderParam("user-agent") String userAgent ) { return tracingService.getResponse(requestId, traceId, spanId, sampled, flags, userAgent); } } • 必要なヘッダー(x-b3-*)を HeaderParamに定義