Skip to content

Injecting span context using SpanContext instead of Context #4456

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

You must be logged in to vote

You can put your SpanContext into a Context today like this (perhaps not the most obvious API, we know):

context.with(Span.wrap(spanContext))

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Deeds67
Comment options

@jkwatson
Comment options

@Deeds67
Comment options

Answer selected by Deeds67
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