Global Span attribute [Span attributes Readability & Span attributes addition to SpanContext] #7396
-
More or less i am trying to achieve something like that https://stackoverflow.com/questions/74761054/opentelemetry-custom-traceid-addition Both requirements and proposed solutions are described in my question. Any ideas, directions, etc are always welcome. open-telemetry/opentelemetry-collector-contrib#14026 describes exactly my case. Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Do I understand correctly that you wish to attach a custom trace id that is passed in the request as an attribute to all the spans? |
Beta Was this translation helpful? Give feedback.
-
I found a suitable way using Baggage api propagation. I wrote a custom span processor so i achieved propagating custom attributes through Baggage.current() and populate them on spans while overriding the onStart() method of span processor. |
Beta Was this translation helpful? Give feedback.
I found a suitable way using Baggage api propagation. I wrote a custom span processor so i achieved propagating custom attributes through Baggage.current() and populate them on spans while overriding the onStart() method of span processor.