Take trace_state into account when calculating span metrics #2684
Labels
component/metrics-generator
enhancement
New feature or request
keepalive
Label to exempt Issues / PRs from stale workflow
When using w3c tracing context propagation OTel will propagate "trace state" here:
https://github.com/open-telemetry/opentelemetry-proto/blob/c4dfbc51f3cd4089778555a2ac5d9bc093ed2956/opentelemetry/proto/trace/v1/trace.proto#L100
The data in this string can contain information about how the trace was sampled:
https://opentelemetry.io/docs/specs/otel/trace/tracestate-probability-sampling/
If this information is present it can be used to reverse the impact of sampling. Add a configuration option that, when set to true, checks for trace state and uses it to inflate metrics to "undo" sampling.
The text was updated successfully, but these errors were encountered: