[feature request] Add support for .DisableHttpMetrics()
in AspNetCore
#2332
Labels
comp:instrumentation.aspnetcore
Things related to OpenTelemetry.Instrumentation.AspNetCore
enhancement
New feature or request
Component
OpenTelemetry.Instrumentation.AspNetCore
Is your feature request related to a problem?
AspNetCore has added an opt-in method to disable metrics for endpoints here dotnet/aspnetcore#56039
This seems to be something Otel needs to handle.
What is the expected behavior?
Traces (at a minimum) should be excluded when an endpoint's metadata has this attribute.
Which alternative solutions or features have you considered?
For tracing, you can use the
Filter
option inAspNetCoreTraceInstrumentationOptions
.Additional context
No response
The text was updated successfully, but these errors were encountered: