newrelic / newrelic-java-agent

The New Relic Java agent
Apache License 2.0
202 stars 143 forks source link

Support external calls inside Spring Reactor call chains #1800

Closed jbedell-newrelic closed 7 months ago

jbedell-newrelic commented 7 months ago

Result of https://github.com/newrelic/newrelic-java-agent/issues/1780

The issue is definitely a missed thread hop. A simple repro app can be created to reproduce the issue. Something along the lines of: client.callExternal1().flatMapMany(this::callExternal2).collectList().block();

In this example the external call to External1 will show up in the trace, but the call to External2 will not.

On investigation, the tokenLift() method is not being executed in this scenario, nor is the Hooks.onEachOperator being called.

workato-integration[bot] commented 7 months ago

https://new-relic.atlassian.net/browse/NR-249061

jbedell-newrelic commented 7 months ago

Resolved by: https://github.com/newrelic/newrelic-java-agent/pull/1828