-
Notifications
You must be signed in to change notification settings - Fork 21
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
Is it OK to set two parents to newly created span/scope? #40
Comments
@bsavov can you share a minimal project in order to reproduce the issue ? |
Our app is quite complex, so shall think, also find so time, if possible to isolate the part with spans/Scope. |
@bsavov Can you retry with the latest version? |
still the same with 2.0.5
Looks like both are presented: existingSpanContext and messageProperties.getHeaders() with sample headers:
which apparently successfully extracts spanContext from the message headers and adding (same) parent context twice |
update: same story with 2.0.6-SNAPSHOT |
Hello,
I'm trying to feed wavefront (using https://github.com/wavefrontHQ/wavefront-opentracing-sdk-java), but it seem when consume message from rabbitMQ, the newly created, for the purpose, span/scope has 2 parents (same data, different instance IDs).
Looking at the code:
java-spring-rabbitmq/opentracing-spring-rabbitmq/src/main/java/io/opentracing/contrib/spring/rabbitmq/RabbitMqTracingUtils.java
Line 72 in c7cf9c6
I wonder what is the reason to add two parents to the same scope builder.
Shouldn't be only one of them?
In wavefront the span is reported with two parents like:
(same id, as you can see), but it seems they cannot do proper correlation and I do not get good sequence in the visual tool.
Would it make sense to add only one of them?
Or probably I'm doing something not quite as it shall be, for example where 'existingSpanContext' come from?
The text was updated successfully, but these errors were encountered: