Skip to content

Investigate if DistributedContextPropagator can be used to avoid injecting and extracting context in instrumentation libraries #2013

Open
@vishweshbankwar

Description

@vishweshbankwar

Feature Request

Starting .NET6.0 DistributedContextPropagator is added to System.Diagnostics.DiagnosticSource. Opening this issue to investigate if we can avoid context injection and extraction in HttpClient and ASP.NET Core instrumentations respectively and have libraries set the correct context based on the default propagator set by user in SDK. If possible, this will help reduce the overhead of extracting and injecting context twice (first in instrumented library i.e. ASP.NET Core \ HttpClient and then in instrumentation library) when the default propagator is not TraceContextPropagator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions