Closed markgllin closed 2 years ago
right I don't think you would be able to trace calls inside the dependencies. I think if you have written ruby app where you're doing HTTP call and aws SDK sqs calls and then do the above x-ray configuration then I think SDK would be able to patch those requests and you should see traces. In this case I guess the HTTP call is made by the lib (faraday
) where x-ray SDK is not instrumented so that's why you're seeing no traces.
in other words, if the libraries that x-ray supports are called through a gem dependency instead of directly, we're unable to trace the call?
Are you able to suggest any workarounds for this?
worked around this by manually creating a new segment
Problem:
the
net_http
andaws_sdk
libraries are not patched by the xray sdk if those libraries are used through a gem as opposed to directly through the application.e.g. our Gemfile for our Rails application:
X-Ray configuration:
Requests made through Faraday to our API Gateway will not be captured by XRay. The same goes for our sqs calls made through our own
sqs-client
gem.