Class DefaultMongoCommandTagsProvider

java.lang.Object
io.micrometer.core.instrument.binder.mongodb.DefaultMongoCommandTagsProvider
All Implemented Interfaces:
MongoCommandTagsProvider

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

    Constructors
    Constructor Description
    DefaultMongoCommandTagsProvider()  
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    • DefaultMongoCommandTagsProvider

      public DefaultMongoCommandTagsProvider()
  • Method Details

    • commandTags

      public java.lang.Iterable<Tag> commandTags​(com.mongodb.event.CommandEvent event)
      Description copied from interface: MongoCommandTagsProvider
      Provides tags to be associated with metrics for the given Mongo command.
      Specified by:
      commandTags in interface MongoCommandTagsProvider
      Parameters:
      event - the Mongo command
      Returns:
      tags to associate with metrics recorded for the command