-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to extend Xray Apache HTTP ClientBuilder? #321
Comments
Hi @kjhok1811 For your instrumented HTTP client, are you looking to modifying existing metadata or add new ones? If you want to add new metedata, one workaround could be to create custom subsegment around the http client call and add metadata to this subsegment. |
um... |
Unfortunately, the provided However, I was wrong in saying
There's a way (a bit convoluted though) you can modify the subsegments for HTTP calls using the AWSXRayRecorderBuilder builder = AWSXRayRecorderBuilder.standard().withSegmentListener(mySegmentListener);
AWSXRay.setGlobalRecorder(builder.build()); Be advised that this may degrade some performance as the SegmentListener will be invoked for every Segment/Subsegment created in your application. |
I want to customize Metadata properties when instrumenting with Xray Apache HTTP ClientBuilder. What should I do?
The text was updated successfully, but these errors were encountered: