Skip to content

How to use serialized spancontext as parent, so that link can be established between two spans #3023

Answered by jkwatson
MacNale asked this question in Q&A
Discussion options

You must be logged in to vote

context.with(Span.wrap(spanContext)) will get you a Context instance that can be used as the argument to the setParent(Context) call on the SpanBuilder.

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@surajeetdev
Comment options

@jkwatson
Comment options

@surajeetdev
Comment options

@jkwatson
Comment options

@ukrcoder
Comment options

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