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 Type
    Method
    Description
    void
    customizeCommandStartSpan(com.mongodb.event.CommandStartedEvent commandStartedEvent, Span.Builder spanBuilder)
    Customizes the Span created from the CommandStartedEvent.
  • Method Details

    • customizeCommandStartSpan

      void customizeCommandStartSpan(com.mongodb.event.CommandStartedEvent commandStartedEvent, Span.Builder spanBuilder)
      Customizes the Span created from the CommandStartedEvent.
      Parameters:
      commandStartedEvent - event from Mongo
      spanBuilder - span builder to customize