Skip to content

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
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@jkwatson
Comment options

jkwatson Jun 3, 2021
Collaborator

@GokulShrikanth
Comment options

@GokulShrikanth
Comment options

@jkwatson
Comment options

jkwatson Jun 3, 2021
Collaborator

@GokulShrikanth
Comment options

Answer selected by GokulShrikanth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants