You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A customer was upgrading from the 7.4.3 agent to the 7.11.1 version. While doing this upgrade, they noticed that their transaction time - which used to be measured in milliseconds - was now returning microsecond response times. Transaction traces with the new agent also appears to have fewer segments being created.
Example
The current thinking is that the removal of instrumentation support for the CompletableFuture/Completion.tryFire() method may be the root of the problem, since the transaction is essentially being lost. Example code fragment:
// code placeholder
@Trace(dispatcher = true)
private PipelineExecutionContext createDefaultExecutionContext(InboundExecutionContext inboundExecutionContext, DefaultMessage message) {
...
NewRelicIteratingPipelineExecutionContext pipelineExecutionContext = pipeline.createPipelineExecutionContext(
When constructing the NewRelicIteratingPipelineExecutionContext we grab the NR token like this:
public class NewRelicIteratingPipelineExecutionContext extends IteratingPipelineExecutionContext {
private final Token newRelicToken = NewRelic.getAgent().getTransaction().getToken();
At the end of the traction we do this:
@Override
public void complete() {
try {
super.complete();
}
finally {
newRelicToken.linkAndExpire();
}
}
The text was updated successfully, but these errors were encountered:
Description
A customer was upgrading from the
7.4.3
agent to the7.11.1
version. While doing this upgrade, they noticed that their transaction time - which used to be measured in milliseconds - was now returning microsecond response times. Transaction traces with the new agent also appears to have fewer segments being created.Example
The current thinking is that the removal of instrumentation support for the
CompletableFuture/Completion.tryFire()
method may be the root of the problem, since the transaction is essentially being lost. Example code fragment:The text was updated successfully, but these errors were encountered: