Interface MongoCommandTagsProvider

All Known Implementing Classes:
DefaultMongoCommandTagsProvider
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 MongoCommandTagsProvider
Provides Tags for Mongo command metrics.
Since:
1.7.0
  • Method Summary

    Modifier and Type
    Method
    Description
    commandTags(com.mongodb.event.CommandEvent commandEvent)
    Provides tags to be associated with metrics for the given Mongo command.
  • Method Details

    • commandTags

      Iterable<Tag> commandTags(com.mongodb.event.CommandEvent commandEvent)
      Provides tags to be associated with metrics for the given Mongo command.
      Parameters:
      commandEvent - the Mongo command
      Returns:
      tags to associate with metrics recorded for the command