Open
Description
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 in AspNetCoreTraceInstrumentationOptions
.
Additional context
No response