-
I want to recreate a spancontext serialized into a file. e.g
Once the SpanContext is created, I wish to use this as if it came from REMOTE service to create subsequent spans.
I am not sure, how 'parentSpan' can use the passed 'spanContext' as remote span context. |
Beta Was this translation helpful? Give feedback.
Answered by
jkwatson
Mar 12, 2021
Replies: 1 comment 12 replies
-
|
Beta Was this translation helpful? Give feedback.
12 replies
Answer selected by
MacNale
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
context.with(Span.wrap(spanContext))
will get you aContext
instance that can be used as the argument to thesetParent(Context)
call on the SpanBuilder.