Support restarting the trace with a different trace ID #1188
Labels
area:sdk
Related to the SDK
release:after-ga
Not required before GA release, and not going to work on before GA
spec:trace
Related to the specification/trace directory
What are you trying to achieve?
When SaaS products from cloud providers participate in the tracing, the providers are often reluctant to respect customer-supplied trace ID because it can be abused by the caller (e.g. sending the same trace ID for all requests). W3C trace context explicitly allows nodes in the call graph to restart a trace with a new trace ID, and return it to the caller via the response header (currently in the design phase). However, the current OTEL SDK spec states that the tracer must always respect & reuse the inbound trace ID.
OTEL SDK may support a configurable mechanism to restart a trace. The inbound SpanContext in this case can still be recorded as a Link to external trace.
Additional context.
Previous discussion here: #998 (comment)
Alternatives.
The behavior may also be implemented purely on the instrumentation side, e.g.
If OTEL Spec Committee decides not to support this directly in the SDKs, then the use case should be documented in some FAQ.
The text was updated successfully, but these errors were encountered: