-
Notifications
You must be signed in to change notification settings - Fork 454
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
Possible resource leak with opentelemetry-otlp and tonic #1048
Comments
This looks to be because of tonic. I ran this again with grpc-sys instead of tonic, with results similar to your jaeger example. I then added the tokio-console to the tonic example and saw the same problematic behavior. |
Sorry to hear you're running into issues! I'm afraid I won't be able to dig into this more, maybe ask the tonic folks (I recommend their Discord channel) for some feedback on where the problem could be happening? If you're seeing it with the tonic example that seems a smoking gun that there might be a problem deeper in the stack. |
Would this cause delay (of 2-3 mins) in sending spans (with simple span processor) and sometimes even crashing the program? Because I am currently observing this. I couldn't get |
I've updated the dependencies in the provided code and was not able to reproduce this issue. I'm using Jaeger as the OTLP backend ( I suggest that we close this issue, especially since it hasn't seen any updates in more than 6 months.
|
Thanks @stormshield-fabs . Will close this. |
I'm experimenting with using opentelemetry-otlp to export spans using tonic. I also have tokio-console wired in to observe behavior.
When exporting spans using otlp, I see an unbounded growth in tonic executors. Here's an example screenshot from tokio-console:
Note all the tonic executor tasks with 3 polls. The longer the program runs, the more such tasks pile up.
Here's the code I used to produce this:
If I switch to the jaeger exporter, I do not see this kind of behavior:
Here's the same code with a jaeger exporter:
Here's my Cargo.toml:
I'm not 100% certain this is an opentelemetry-otlp issue. I realize this could be a tokio-console reporting issue, or perhaps poor coding on my part. I'm starting here because:
I'm happy to do any other investigation or provide any other information, but I may need guideposts along the way.
The text was updated successfully, but these errors were encountered: