Interface TraceMongoSpanCustomizer
- All Known Implementing Classes:
TraceMongoClusterIdSpanCustomizer,TraceMongoSocketAddressSpanCustomizer
public interface TraceMongoSpanCustomizer
Customizer for the child span wrapping the call to Mongo.
- Since:
- 3.1.0
- Author:
- Marcin Grzejszczak
-
Method Summary
Modifier and TypeMethodDescriptionvoidcustomizeCommandStartSpan(com.mongodb.event.CommandStartedEvent commandStartedEvent, Span.Builder spanBuilder) Customizes the Span created from theCommandStartedEvent.
-
Method Details
-
customizeCommandStartSpan
void customizeCommandStartSpan(com.mongodb.event.CommandStartedEvent commandStartedEvent, Span.Builder spanBuilder) Customizes the Span created from theCommandStartedEvent.- Parameters:
commandStartedEvent- event from MongospanBuilder- span builder to customize
-