Class DefaultMongoConnectionPoolTagsProvider

java.lang.Object
io.micrometer.core.instrument.binder.mongodb.DefaultMongoConnectionPoolTagsProvider
All Implemented Interfaces:
MongoConnectionPoolTagsProvider

public class DefaultMongoConnectionPoolTagsProvider
extends java.lang.Object
implements MongoConnectionPoolTagsProvider
Default implementation for MongoConnectionPoolTagsProvider.
Since:
1.7.0
  • Constructor Summary

    Constructors
    Constructor Description
    DefaultMongoConnectionPoolTagsProvider()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Iterable<Tag> connectionPoolTags​(com.mongodb.event.ConnectionPoolCreatedEvent event)
    Provides tags to be associated with the Mongo connection metrics for the given event.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultMongoConnectionPoolTagsProvider

      public DefaultMongoConnectionPoolTagsProvider()
  • Method Details

    • connectionPoolTags

      public java.lang.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