It appears that currently this library understands the ot-tracer-sampled header and will set a bit on the SpanContext appropriately, and even propagate this bit to child spans. However, this information is not used in any way. It is not used to trim spans from the report prior to sending to the collectors, nor is it serialized into the report for the collectors to use.
Ideally, when a span is closed, we would not record it if sampled is false. If not, we should serialize this information so the collectors can use it to avoid sending the trace to the Lightstep platform.
It appears that currently this library understands the
ot-tracer-sampled
header and will set a bit on the SpanContext appropriately, and even propagate this bit to child spans. However, this information is not used in any way. It is not used to trim spans from the report prior to sending to the collectors, nor is it serialized into the report for the collectors to use.Ideally, when a span is closed, we would not record it if
sampled
is false. If not, we should serialize this information so the collectors can use it to avoid sending the trace to the Lightstep platform.