opentelemetry-dotnet
opentelemetry-dotnet copied to clipboard
SpanProcessor.OnStart, Sampler receives parent Context
Spec requires SpanProcesor.OnStart to receive the span and parentcontext (https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/sdk.md#onstart).
The .NET Implementation only provides Activity to OnStart on ActivityProcessor, and does not explicitly provide a parent Context.
However, it is possible to use Activity.Current.Parent.ActivityContext, and Baggage.Current to access parent ActivityContext, and Baggage.
Due to the difference in Activity semantics, and the way context is handled, it is not clear if we should mark "+" or "-" for the spec-compliance-matrix "SpanProcessor.OnStart receives parent Context".
Same issue for Sampler as well.
Marking "-" for these entries now.
This issue was marked stale due to lack of activity and will be closed in 7 days. Commenting will instruct the bot to automatically remove the label. This bot runs once per day.
Closed as inactive. Feel free to reopen if this issue is still a concern.
This issue was marked stale due to lack of activity and will be closed in 7 days. Commenting will instruct the bot to automatically remove the label. This bot runs once per day.