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.
Provides
Tags
for Mongo command metrics.- Since:
- 1.7.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
commandStarted
(com.mongodb.event.CommandStartedEvent commandStartedEvent) Signals that a command has started and is a chance for implementations to prepare or do any necessary pre-processing.commandTags
(com.mongodb.event.CommandEvent commandEvent) Provides tags to be associated with metrics for the given Mongo command.
-
Method Details
-
commandStarted
default void commandStarted(com.mongodb.event.CommandStartedEvent commandStartedEvent) Signals that a command has started and is a chance for implementations to prepare or do any necessary pre-processing.- Parameters:
commandStartedEvent
- event representing the issued command- Since:
- 1.8.0
-
commandTags
Provides tags to be associated with metrics for the given Mongo command.- Parameters:
commandEvent
- event representing the issued command- Returns:
- tags to associate with metrics recorded for the command
-