-
Notifications
You must be signed in to change notification settings - Fork 523
Future not resolving with Tonic and SimpleSpanProcessor #785
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
Comments
IIRC |
Oh! I was getting the same issue with the batch processor, but I didn't debug it thoroughly. I think it also calls Did you consider providing an |
Yeah we do have Runtime and it's one of the parameters of the BatchSpanProcessor. |
Oh, nice. Indeed I'm having better luck with the |
Yep we have encounter it before if user are using tokio single threaded runtime. TokioCurrentThread runtime will spawn the resource on a different thread so that kind of solving the issue This is not a perfect design but I think if we can make |
Consider the following otlp configuration:
When using
SimpleSpanProcessor
(throughwith_simple_exporter
), eventually the program reaches a point where the future actually exporting the span never resolves. It's this line: the thread dequeues the span, andblock_on
never returns. It seems this is triggering a deadlock.I'm using
tracing-rs
(with the workaround in #473) on top andopentelemetry-otlp
configured with["tonic", "tls", "tls-roots"]
.Curiously, if I use the following very simple processor, everything works correctly:
Does any of this ring any bells?
The text was updated successfully, but these errors were encountered: