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] Filter out measurements based on tag value #5991

Open
MhdTlb opened this issue Nov 19, 2024 · 2 comments
Open

[feature request] Filter out measurements based on tag value #5991

MhdTlb opened this issue Nov 19, 2024 · 2 comments
Labels
needs-spec-change Issues which require the OpenTelemetry Specification to clarify or define behavior pkg:OpenTelemetry Issues related to OpenTelemetry NuGet package

Comments

@MhdTlb
Copy link

MhdTlb commented Nov 19, 2024

Package

OpenTelemetry

Is your feature request related to a problem?

When adding metrics for System.Net.Http, I noticed that we send measurements for OTLP Exporter requests as well. The tag for these measurements is server.port == 4137

What is the expected behavior?

It would be helpful to have a filter to ignore measurements with a given tag value.

Which alternative solutions or features have you considered?

There is no alternative solution

Additional context

No response

@MhdTlb MhdTlb added enhancement New feature or request needs-triage New issues which have not been classified or triaged by a community member labels Nov 19, 2024
@github-actions github-actions bot added the pkg:OpenTelemetry Issues related to OpenTelemetry NuGet package label Nov 19, 2024
@TimothyMothra
Copy link
Contributor

This shouldn't happen, the OTLP Exporter's traffic should be suppressed.
Can you please share a small sample app that reproduces this issue?

@cijothomas
Copy link
Member

This shouldn't happen, the OTLP Exporter's traffic should be suppressed. Can you please share a small sample app that reproduces this issue?

When adding metrics for System.Net.Http, I noticed that we send measurements for OTLP Exporter requests as well. The tag for these measurements is server.port == 4137

This is the expected behavior!

We don't have an ability inside SDK to filter based on tag value today. (But such capability might be available in Collector/ backends..)

@cijothomas cijothomas removed the needs-triage New issues which have not been classified or triaged by a community member label Nov 26, 2024
@cijothomas cijothomas added needs-spec-change Issues which require the OpenTelemetry Specification to clarify or define behavior and removed enhancement New feature or request labels Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-spec-change Issues which require the OpenTelemetry Specification to clarify or define behavior pkg:OpenTelemetry Issues related to OpenTelemetry NuGet package
Projects
None yet
Development

No branches or pull requests

3 participants