Changing TraceId/SpanId in existing traces #32709
Unanswered
martinxluptak
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is it possible to somehow set the
TraceId
attribute in existing spans?I have noticed one of the OTTL examples shows how to update
SpanId
in existing spans. I tried to analogously set theTraceId
, but theTraceId
in the span object did not get updated. Curiously, theTraceId
in the attachedlinks
object did get updated.I see the documentation states that SpanContext objects are immutable. Is this the underlying reason, and is there any way around it?
Context: In my use case, I need to "inherit" traces from a service relying on the W3C
traceparent
header, but they also wrongly have rely on their OpenTelemetryTraceId
so I need re-set it from thetraceparent
header.Thank you
Beta Was this translation helpful? Give feedback.
All reactions