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
Constructors -
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:MongoConnectionPoolTagsProviderProvides tags to be associated with the Mongo connection metrics for the givenevent.- Specified by:
connectionPoolTagsin 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
-