-
Notifications
You must be signed in to change notification settings - Fork 462
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
[Bug]: Missing parent span used in Condvar in Jaeger exports #1595
Comments
The problem you're facing is related to inter-process trace propagation (see also OTel Context Propagation): when the second instance of the program starts, it has no idea the caller process was instrumented so it cannot set the parent ID as you'd expect. You need to use a Here's a modified version of your repro (please note I've added
|
Thanks! (sorry for getting back to you late as I was away for other stuff) :> Ah yes the |
What happened?
I have made a demo showing that the parent span of
a2
is missing by using the tracing and otel crates and jaeger exporter.https://github.com/Mossaka/otel-condvar/blob/main/src/main.rs
This program does a fork-exec and wait for the CondVar to wake up. The parent process sleeps for three seconds in a thread and then signal the condvar. I am expecting that both
a1
anda2
have ashim_main
parent span.a1
has one buta2
is missing one.API Version
0.21
SDK Version
0.21
What Exporters are you seeing the problem on?
OTLP
Relevant log output
No response
The text was updated successfully, but these errors were encountered: