Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robertcoltheart opened this issue Nov 18, 2024 · 0 comments
Labels
comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore enhancement New feature or request

Comments

@robertcoltheart
Copy link

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

@robertcoltheart robertcoltheart added the enhancement New feature or request label Nov 18, 2024
@github-actions github-actions bot added the comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore label Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:instrumentation.aspnetcore Things related to OpenTelemetry.Instrumentation.AspNetCore enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant