Interface MongoConnectionPoolTagsProvider

All Known Implementing Classes:
DefaultMongoConnectionPoolTagsProvider
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface MongoConnectionPoolTagsProvider
Provides Tags for Mongo connection pool metrics.
Since:
1.7.0
  • Method Summary

    Modifier and Type
    Method
    Description
    connectionPoolTags(com.mongodb.event.ConnectionPoolCreatedEvent event)
    Provides tags to be associated with the Mongo connection metrics for the given event.
  • Method Details

    • connectionPoolTags

      Iterable<Tag> connectionPoolTags(com.mongodb.event.ConnectionPoolCreatedEvent event)
      Provides tags to be associated with the Mongo connection metrics for the given event.
      Parameters:
      event - The Mongo event of when the connection pool is opened
      Returns:
      tags to be associated with metrics recorded for the connection pool