newrelic / newrelic-java-agent

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

Support for Mongo reactive 5.2.0 #2066

Open jtduffy opened 2 hours ago

jtduffy commented 2 hours ago

A new instrumentation module is needed to support the mongo reactive v5.2.0 library. Below is the verify instrumentation failure when the mongodb-reactive-streams-4.8 module is run against v5.2:

Verification FAILED. Instrumentation module mongodb-reactive-streams-4.8-1.0.jar SHOULD HAVE applied to org.mongodb:mongodb-driver-reactivestreams:5.2.0 and did not. You may need to adjust the range "org.mongodb:mongodb-driver-reactivestreams:[4.8.0,)".
...
...
WeaveViolation{type=INIT_NEW_UNSUPPORTED, clazz=com/mongodb/internal/operation/DropCollectionOperation, method=<init>(Lcom/mongodb/MongoNamespace;)V}
WeaveViolation{type=METHOD_NEW_INVOKE_UNSUPPORTED, clazz=com/mongodb/internal/operation/DropCollectionOperation, method=<init>(Lcom/mongodb/MongoNamespace;)V}
WeaveViolation{type=METHOD_NEW_NON_PRIVATE_UNSUPPORTED, clazz=com/mongodb/internal/operation/DropCollectionOperation, method=<init>(Lcom/mongodb/MongoNamespace;)V}
WeaveViolation{type=METHOD_INDIRECT_INTERFACE_WEAVE, clazz=com/mongodb/reactivestreams/client/MongoClient, method=getDatabase(Ljava/lang/String;)Lcom/mongodb/reactivestreams/client/MongoDatabase;}
workato-integration[bot] commented 2 hours ago

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