Skip to content

[feature request] Add support for .DisableHttpMetrics() in AspNetCore #2332

Open
@robertcoltheart

Description

@robertcoltheart

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

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