It should be possible to propagate context without creating a new span #4271
Labels
spec:trace
Related to the specification/trace directory
triage:accepted:ready-with-sponsor
Ready to be implemented and has a specification sponsor assigned
There are multiple cases when passive context propagation (without modification) is desirable:
Some languages (Java, Go) allow it all with a code like
but some other languages (.NET) don't implement it since spec does not tell anything about it - open-telemetry/opentelemetry-dotnet#5286
Indeed, https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/api.md#context-interaction defines interactions between
Span
andContext
and tells nothing aboutSpanContext
or ability to represent existingSpanContext
with aSpan
The solutions I would like:
SpanContext
with the currentContext
.Span
-like representation of aSpanContext
that'd be returned byTracer.getCurrentSpan()
.SpanContext
it was created in. See PropagatedSpan implementation in Java [UPDATE]: Or nonRecordingSpan in go (thanks @dmathieu for the pointers).The text was updated successfully, but these errors were encountered: