Class TracingCommandListener

java.lang.Object
io.opentelemetry.instrumentation.mongo.v3_1.internal.TracingCommandListener
All Implemented Interfaces:
com.mongodb.event.CommandListener

public final class TracingCommandListener extends Object implements com.mongodb.event.CommandListener
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Constructor Details

    • TracingCommandListener

      public TracingCommandListener(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<com.mongodb.event.CommandStartedEvent,Void> instrumenter)
  • Method Details

    • commandStarted

      public void commandStarted(com.mongodb.event.CommandStartedEvent event)
      Specified by:
      commandStarted in interface com.mongodb.event.CommandListener
    • commandSucceeded

      public void commandSucceeded(com.mongodb.event.CommandSucceededEvent event)
      Specified by:
      commandSucceeded in interface com.mongodb.event.CommandListener
    • commandFailed

      public void commandFailed(com.mongodb.event.CommandFailedEvent event)
      Specified by:
      commandFailed in interface com.mongodb.event.CommandListener