Description
Currently, ASP.NET Core
metric instrumentation has added support for Enrich and Filter (https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Instrumentation.AspNetCore/AspNetCoreMetricsInstrumentationOptions.cs). A similar functionality for HttpClient
does not exist today.
These features will be removed prior to stable release of the instrumentation library. With native support for metrics added to ASP.NET Core
and HttpClient
in .NET8.0
, any futher enhancements are expected to be added directly to these libraries. For ASP.NET Core
a similar functionality is already added https://learn.microsoft.com/en-us/aspnet/core/log-mon/metrics/metrics?view=aspnetcore-8.0#enrich-the-aspnet-core-request-metric. For HttpClient
, dotnet/runtime#88460 is proposed.
This issue to document the plan for these APIs with respect to stable release of these libraries.
This does not affect the Enrich and Filter APIs that are part of Tracing
.