Token is reporting parent as com.newrelic.agent.tracers.OtherRootTracer@172e5a3c when it should be the first/root.parent
Expected Behavior
I would expect the very first Token created on Transaction, would be the root/parent OR the token parent would be the transaction. However in our app, the trace logging we see seems to show @Trace(dispatcher=true) is not behaving the way we thought it would.
Build project with maven, jdk 17
NewRelicTransactionProblemApplication.java is the main class
It stands up a springboot project and you can hit the endpoint using
jvm args: -javaagent:<path-to-newrelic>/newrelic/newrelic.jar
curl http://localhost:8080/test
Your Environment
We are a Springboot/Jersey Rest service.
NewRelic Java Agent 8.11.1
Spring Framework 6.1.13
Springboot 3.3.0
Jersey 3.1.7
Tomcat 10.1.25
JDK 17
OpenJDK 64-Bit Server VM
Additional context
We use Jersey's RequestEventListener as an entry point into our app.
MyApplicationListener -> MyRequestListener -> Resource
Description
Token is reporting parent as com.newrelic.agent.tracers.OtherRootTracer@172e5a3c when it should be the first/root.parent
Expected Behavior
I would expect the very first Token created on Transaction, would be the root/parent OR the token parent would be the transaction. However in our app, the trace logging we see seems to show @Trace(dispatcher=true) is not behaving the way we thought it would.
Troubleshooting or [NR Diag]
Steps to Reproduce
Here is a branch in my github demonstrating problem https://github.com/patrickjamesbarry/newrelic/tree/TransActionNotParent
Build project with maven, jdk 17 NewRelicTransactionProblemApplication.java is the main class It stands up a springboot project and you can hit the endpoint using
jvm args: -javaagent:<path-to-newrelic>/newrelic/newrelic.jar
curl http://localhost:8080/test
Your Environment
We are a Springboot/Jersey Rest service.
NewRelic Java Agent 8.11.1 Spring Framework 6.1.13 Springboot 3.3.0 Jersey 3.1.7 Tomcat 10.1.25 JDK 17 OpenJDK 64-Bit Server VM
Additional context
We use Jersey's RequestEventListener as an entry point into our app. MyApplicationListener -> MyRequestListener -> Resource