AWS Xray and Quarkus Lambda

142 views
Skip to first unread message

Tom Gregory

unread,
Sep 28, 2021, 5:18:50 PM9/28/21
to Quarkus Development mailing list
Hi All,

I am trying to use XRay with quarkus.  I've successfully built a native image with the quarkus-amazon-lambda-xray.  I've also enabled tracing in AWS and I am getting traces from the lambda.

However, the lambda calls a micro-service using a rest client.  I am doing the following:

@RegisterRestClient
@Path("/coding-statemachine")
public interface TransitionService {

    @POST
@Path("/transition/action/{action}/userid/{userId}/statemachine/{stateMachineName}")
    @Consumes("application/json")
    @Produces("application/json")
    TransitionResult transitionRequest(@PathParam("action") String action, @PathParam("userId") String userId, @PathParam("stateMachineName") String stateMachineName, MicroServiceDTO microServiceDTO);

}

How can I instrument the request that is going out via this REST client?  I've seen some documentation on instrumenting AWS services like S3, but I can't seem to find anything for Rest Clients in Quarkus.  

All of the Quarkus documentation just indicates to include the jar, but I think there is more to it when instrumenting REST calls.  No?

Thanks,
Tom

Reply all
Reply to author
Forward
0 new messages