Class DefaultMongoCommandTagsProvider
java.lang.Object
io.micrometer.core.instrument.binder.mongodb.DefaultMongoCommandTagsProvider
- All Implemented Interfaces:
MongoCommandTagsProvider
Default implementation for
MongoCommandTagsProvider.- Since:
- 1.7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommandTags(com.mongodb.event.CommandEvent event)Provides tags to be associated with metrics for the given Mongo command.
-
Constructor Details
-
DefaultMongoCommandTagsProvider
public DefaultMongoCommandTagsProvider()
-
-
Method Details
-
commandTags
Description copied from interface:MongoCommandTagsProviderProvides tags to be associated with metrics for the given Mongo command.- Specified by:
commandTagsin interfaceMongoCommandTagsProvider- Parameters:
event- the Mongo command- Returns:
- tags to associate with metrics recorded for the command
-