Please document effect of trace_flags
in SpanContext
(must set sampled to process trace)
#559
Labels
bug
Something isn't working
I was trying to do some distributed tracing using
SpanContext
. Thetrace_flags
field is just documented as:This is slightly inaccurate; there are several constants defined at https://docs.rs/opentelemetry/0.14.0/opentelemetry/trace/index.html#constants . It'd be helpful to have a link to those constants.
But also, this documentation does not explain the net effect of the flags. I spent quite a long time trying to debug why I didn't get any traces out after setting a parent context based on a remote span. Finally, I discovered that a trace with
trace_flags
set to 0 would always be ignored. Settingtrace_flags
toopentelemetry::trace::TRACE_FLAG_SAMPLED
caused the traces to be emitted again.Please consider adding some documentation about this, to help people building distributed trace systems.
The text was updated successfully, but these errors were encountered: