Add Custom Attribute with Auto Instrumentation #6458
Unanswered
codeforaliving
asked this question in
Q&A
Replies: 2 comments 14 replies
-
Beta Was this translation helpful? Give feedback.
11 replies
-
@laurit thanks for the response. We have a class that adds a transaction ID to ThreadLocal and that is where I wanted to put the baggage logic. Can’t something just be added to baggage without the auto close? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are currently using Open Telemetry auto instrumentation with a Java extension (just a SpanProcessor for now) to rename span names as well as redact sensitive info from the url. Now we want to add a custom attribute to our traces and spans.
We currently have a servlet filter to add the transaction id to the current span, but I am not sure how to propagate that value to child spans and I am not seeing the value at all in XRay. We are using Spring Boot and exporting through Prometheus.
Any suggestions on how to get a custom attribute propagated?
Beta Was this translation helpful? Give feedback.
All reactions