-
Notifications
You must be signed in to change notification settings - Fork 451
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
Invalid parent ID (all zeros) #1223
Comments
Example code for parent-child span creation with Jaeger is here. But looks like you are doing steps correctly. Which OS/compiler you are testing with. There are issues with Ubuntu 18.04.5 LTS/ gcc 7.5.0 where TLS is not handled correctly due to a bug in the compiler. More details along with a workaround #1014 |
Thanks. This seems to be the same issue I am having. I'm using Release built static libs. GCC 6.3 on RHEL6.10. I'll try out the workaround and get back. Thanks a lot for quick reply |
Nope my issue is something else. Very strange. I'm going to look into it more. |
Any ideas what I could do to debug this? My issue is very similar to the issue you linked. Parent id is zero'd out just like that issue. What line of code populates the parent_id? Debugging the Stack i can see objects getting added appropriately. This seems correct. Thanks a lot! This library will be awesome when it works! |
Parent-id gets populated here. Meanwhile, if you are able to build sample example, and share the console output after running, it would give some idea. |
I finally got this working. I pulled out the StartSpan function in tracer.cc into the header file, and it worked. So I'm just going to use my local revision for time being! The traces look great in Jaeger. |
In case anyone sees this. The fix was likely not my changes in tracer.cc. it was the same issue as here: #1014 |
Thanks for confirming. |
Hey, could anyone point me to real world repo using opentelemetry-cpp? I'd like to study code already successfully using it.
I'm struggling to produce usable traces into Jaeger. Each time i create a span and scope, it produces a new trace in Jaeger, so I'm unable to get anything useful other than for a single function runtime. It seems like the way I am using it doesn't handle parents correctly.
The way I'm using it is as follows:
I must be doing something wrong!
Thanks!
The text was updated successfully, but these errors were encountered: