newrelic / newrelic-java-agent

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

Support for Mongo reactive 5.2.0 #2066

Open jtduffy opened 1 month ago

jtduffy commented 1 month 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 1 month ago

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