newrelic / newrelic-java-agent

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

CompletableFuture module for completeAsync #1882

Closed kanderson250 closed 5 months ago

kanderson250 commented 6 months ago

Description

From this spike #1741.

Spring 6 methods wrapped in a CompletableFuture and annotated with @Async don't hit our current instrumentation. This is because they call completeAsync on the CF, which was introduced with Java 9 and so isn't a part of our current modules for Java 8+.

Instrumenting completeAsync will entail creating a new CompletableFuture instrumentation module, applicable to JDK 9+.

Acceptance Criteria

Async calls made with Spring 6 are instrumented fully, and additional tests are added for completeAsync.

workato-integration[bot] commented 6 months ago

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

kanderson250 commented 6 months ago

Related GTSE