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

Use IsEnabled DS callback to filter out requests #259

Conversation

lmolkova
Copy link

@lmolkova lmolkova commented Oct 4, 2019

Fixes #166

DiagnosticSource provides an efficient callback to prevent instrumentation for certain events.
We should use it instead of sampler/named tracer when possible to minimize perf impact on the application.

Now we need to filter out HTTP calls to exporters (AppInsights, Zipkin, not sure about LightStep).
Users may configure callback that will sample out certain requests - they write which ones.
Sampling happens too late and not the right mechanism to filter.

This change

  • Removes filtering based on custom sampler
  • Adds default filter for known endpoints (app insights and zipkin)
  • hides the ability to configure it - this will need to come as a separate feature likely after 1.0. Now I just want to minimize public API surface

@lmolkova
Copy link
Author

lmolkova commented Oct 4, 2019

@lmolkova lmolkova merged commit 6097bb3 into open-telemetry:master Oct 9, 2019
Yun-Ting pushed a commit to Yun-Ting/opentelemetry-dotnet that referenced this pull request Oct 13, 2022
Co-authored-by: Utkarsh Umesan Pillai <utpilla@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HttpClient listener should not track calls to well-known internal endpoints
3 participants