How to add the automatically created spans to already existing context...I have tried Span.storeInContext() and that seems to not work.. #3170
Answered
by
jkwatson
GokulShrikanth
asked this question in
Q&A
-
It is possible to store the automatically created spans inside a context?... And this seems to be not working...How am I supposed to use this function when the span is created automatically? |
Beta Was this translation helpful? Give feedback.
Answered by
jkwatson
Jun 2, 2021
Replies: 1 comment 8 replies
-
The context is immutable, so you'll need to use the return value of But, what are you trying to do with this code? It seems strange that you would store a span in the parent context, when it's already in the current context. |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
GokulShrikanth
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The context is immutable, so you'll need to use the return value of
Span.storeInContext
.But, what are you trying to do with this code? It seems strange that you would store a span in the parent context, when it's already in the current context.