Class DefaultMongoConnectionPoolTagsProvider
java.lang.Object
io.micrometer.core.instrument.binder.mongodb.DefaultMongoConnectionPoolTagsProvider
- All Implemented Interfaces:
MongoConnectionPoolTagsProvider
public class DefaultMongoConnectionPoolTagsProvider
extends Object
implements MongoConnectionPoolTagsProvider
Default implementation for
MongoConnectionPoolTagsProvider
.- Since:
- 1.7.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconnectionPoolTags(com.mongodb.event.ConnectionPoolCreatedEvent event)
Provides tags to be associated with the Mongo connection metrics for the givenevent
.
-
Constructor Details
-
DefaultMongoConnectionPoolTagsProvider
public DefaultMongoConnectionPoolTagsProvider()
-
-
Method Details
-
connectionPoolTags
Description copied from interface:MongoConnectionPoolTagsProvider
Provides tags to be associated with the Mongo connection metrics for the givenevent
.- Specified by:
connectionPoolTags
in interfaceMongoConnectionPoolTagsProvider
- Parameters:
event
- The Mongo event of when the connection pool is opened- Returns:
- tags to be associated with metrics recorded for the connection pool
-