Add link after span creation when using propagation context #2926
Answered
by
bantonsson
enricoschaaf
asked this question in
Q&A
-
Hi 👋🏽 https://github.com/open-telemetry/opentelemetry-rust/pull/1515/files suggests this feature has been added. https://github.com/open-telemetry/opentelemetry-specification/blob/main/spec-compliance-matrix.md suggests it has not been. I tried to do it but I could not find a way to update span links for a trace in question is received via propagation context. Is this possble? |
Beta Was this translation helpful? Give feedback.
Answered by
bantonsson
Apr 22, 2025
Replies: 1 comment 2 replies
-
Hi @enricoschaaf this should most definitely be possible. Could you please share some more information about what isn't working for you? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Span
that is represented in the propagated context is the parent of the localSpan
, and not necessarily from this system, so you can't add information to it. You need to create a localSpan
that is a child of the propagated context, and add your links to thatSpan
.