Muzzle Mongo Instrumentations
Add muzzle blocks.
MODIFY
dd-java-agent/instrumentation/mongo-3.1/mongo-3.1.gradle
dd-java-agent/instrumentation/mongo-3.1/mongo-3.1.gradle
-apply plugin: 'version-scan'
-
-versionScan {
+muzzle {
+ pass {
group = "org.mongodb"
module = "mongo-java-driver"
- scanMethods = true
versions = "[3.1,)"
- verifyPresent = [
- 'com.mongodb.MongoClientOptions$Builder': 'addCommandListener'
- ]
+ assertInverse = true
+ }
}
apply from: "${rootDir}/gradle/java.gradle"

MODIFY
dd-java-agent/instrumentation/mongo-async-3.3/mongo-async-3.3.gradle
dd-java-agent/instrumentation/mongo-async-3.3/mongo-async-3.3.gradle
-apply plugin: 'version-scan'
-
-versionScan {
+muzzle {
+ pass {
group = "org.mongodb"
module = "mongodb-driver-async"
- scanMethods = true
versions = "[3.3,)"
- verifyPresent = [
- 'com.mongodb.async.client.MongoClientSettings$Builder': 'addCommandListener'
- ]
+ extraDependency 'org.mongodb:mongo-java-driver:3.3.0'
+ assertInverse = true
+ }
}
apply from: "${rootDir}/gradle/java.gradle"

Muzzle Mongo Instrumentations

Add muzzle blocks.