Replies: 1 comment
-
There are several things wrong with this instrumentation.
I strongly recommend reading the documentation on manual instrumentation here, and making sure you understand what it happening around the management of the contexts and scope: https://opentelemetry.io/docs/instrumentation/java/manual/#create-nested-spans |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi team,
I have a REST service in Java that has multiple spans in it, when I tested this REST service by hitting the URL multiple times with breaks in between, there were separate traces for each hit. But during load testing the traces are not being created properly, multiple hits have the same trace ID and for every new hit, whichever span is active at the moment becomes the parent for what was supposed to be a new trace. Attaching code to reproduce the same issue, and the heirarchy of spans on Jaeger UI
ApplicationSpi.java
`public class ApplicationSpi extends AbstractHandler{
}
`
ApplicationService.java
`public class ApplicationService {
}

`
Beta Was this translation helpful? Give feedback.
All reactions