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 Details

    • DefaultMongoConnectionPoolTagsProvider

      public DefaultMongoConnectionPoolTagsProvider()
  • Method Details

    • connectionPoolTags

      public Iterable<Tag> connectionPoolTags(com.mongodb.event.ConnectionPoolCreatedEvent event)
      Description copied from interface: MongoConnectionPoolTagsProvider
      Provides tags to be associated with the Mongo connection metrics for the given event.
      Specified by:
      connectionPoolTags in interface MongoConnectionPoolTagsProvider
      Parameters:
      event - The Mongo event of when the connection pool is opened
      Returns:
      tags to be associated with metrics recorded for the connection pool