Skip to content

What if I want to modify the traceflags of the spancontext in the span? Is it currently supported? #1765

Answered by MrAlias
wuboui asked this question in Q&A
Discussion options

You must be logged in to vote

You can use WithTraceFlags to set the trace flags for a copy of a SpanContext.

A SpanContext is an immutable type by design and it's association with a span is also not mutable. If you are asking how to change this association, the answer is the same as the other question you asked here: you cannot by design.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Aneurysm9
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