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