-
Notifications
You must be signed in to change notification settings - Fork 453
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
SimpleSpanProcessor is delaying traces (and sometimes crashing) #1143
Comments
Try changing the call to tokio::task::spawn_blocking(opentelemetry::global::shutdown_tracer_provider)
.await |
I've updated the dependencies in the provided code and was not able to reproduce this issue (the program did not crash, and no traces were dropped). 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.
|
#1409 is related. SimpleSpanProcessor should not cause any delay as it does not store anything to queue/buffer/etc. |
@stormshield-fabs I used the same code as you shared, but my collector/jaeger did not show any spans coming from the app. Could you share the full setup used for repro? The envfilter makes me wonder if I have filtered out all spans or something? |
Yes you need - .with_filter(EnvFilter::from_default_env()),
+ .with_filter(EnvFilter::from("info")), |
But in my original code in the first comment, I don't have this because I want to send all the traces. Am I thinking right? |
Yes, I just added the filter because |
How do I make my app's |
I'd suggest to take a look at the You could either:
|
Okay, thanks. To confirm, the original issue is happening because of too many if yes, feel free to close the issue. |
I did not realize it initially but the problem is indeed related to That's certainly the reason for both the delay and |
Related to #761 |
Given the following server program, that uses
install_simple()
to export traces,I have
jaegar/all-in-one
docker container running that takes the traces from the above program and shows me what's happening. These are the following observations:I have reproduced this with both
tonic
andhttp
.When I use
tonic
, sometimes the program crashes withSIGKILL
which could be caused by #1048.When I use
tonic
, sometimes the traces are dropped. I am not sure what's causing it.The text was updated successfully, but these errors were encountered: