JavaAgent mongodb monitoring appears to be working but the below error is reported continuously in the Agent log :
[ERROR] [IntroscopeAgent.SpringMongo] Mongo DB might be down, Error formatting Database : Error looking up method getLegacyDb on class org.springframework.data.mongodb.core.SimpleMongoClientDatabaseFactory with parameters
OR
"[ERROR] [IntroscopeAgent.SpringMongo] Mongo DB might be down, Error formatting Database : Error looking up method getMongo on class com.mongodb.client.internal.MongoDatabaseImpl with parameters",
..
We use reflection API calls for the older mongo db versions.
The error message is a result of a driver version incompatibility with the APMIA MongoDB monitoring extension invoking Spring Data MongoDB API org.springframework.data.mongodb.MongoDbFactory.getLegacyDb() method that is not supported by the MongoDB version used by the application. Monitoring will still take place but the DB name is not identified and the generic name MongoDB will be used.
Enhancement request has been created to better handle this situation: US990828- Add support for Mongo DB driver version 4.11.1
No workaround available.
Workarounds: