Skip to content

Native Trace Instrumentation Support for ASP.NET Core as per OTel specification #52439

@vishweshbankwar

Description

@vishweshbankwar

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

Currently, users depend on the instrumentation library provided by the OpenTelemetry .NET repository to enable the enrichment of activities created during incoming requests, following the OpenTelemetry specification. This instrumentation library enriches activities by subscribing to DiagnosticSource events generated by ASP.NET Core. However, this approach has certain limitation and performance overhead of Diagnostic Source listeners and reflection.

Describe the solution you'd like

We are requesting the addition of native instrumentation support for ASP.NET Core in .NET 9.0. This enhancement will complement the out-of-the-box OTel metrics instrumentation introduced in .NET 8.0.

Additional context

When designing this feature, we need to consider the following aspects:

  1. Support for Enrichment and Filtering of Spans: Ensure that the native instrumentation supports the enrichment and filtering of ASP.NET Core spans.

  2. Custom Propagators: Address the differences in API between propagators in OpenTelemetry and the DistributedContextPropagator. Determine how custom propagators should be handled in this context.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions