-
Notifications
You must be signed in to change notification settings - Fork 621
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
add option to disable asgi intern trace #815
add option to disable asgi intern trace #815
Conversation
|
@raphaelauv could you please add some explanation about this or create an issue? It would be nice to know what problem this solves or why having those spans can be a problem in the first place. Normally a custom processor/exporter or Otel collector should be used to drop specific spans. |
The current ASGI instrumentation produce 3 spans : So I was proposing to add an option to disable the two internal spans. Like ask with this issue -> #831
never heard about that before , do you have any example ? Thank you |
Thanks. Yes, I understand you'd like to disable generation of the two spans but what I'm trying to understand is why those spans are a problem in the first place? |
|
@raphaelauv |
I am trying to create a custom span processor by overriding the
|
@shwetasah-cape did you ever come across a solution to suppress these spans? Context for our organization is that for larger requests or responses, we are sometimes seeing dozens or more little "send" and "receive" spans coming from the ASGI integration, and this is causing is cost+load issues in our opentelemetry collector for little actual value, so I'd like to ASAP figure out a way to suppress these at the application level before they get to our collector. |
I am sorry I couldn't figure out how to suppress them. We too have the exact same context as yours. |
Description
Add an option to disable intern trace of the asgi instrumentation
Fixes #831
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.