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 Summary
ConstructorsConstructorDescriptionTracingCommandListener(io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<com.mongodb.event.CommandStartedEvent, Void> instrumenter) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommandFailed(com.mongodb.event.CommandFailedEvent event) voidcommandStarted(com.mongodb.event.CommandStartedEvent event) voidcommandSucceeded(com.mongodb.event.CommandSucceededEvent event)
-
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:
commandStartedin interfacecom.mongodb.event.CommandListener
-
commandSucceeded
public void commandSucceeded(com.mongodb.event.CommandSucceededEvent event) - Specified by:
commandSucceededin interfacecom.mongodb.event.CommandListener
-
commandFailed
public void commandFailed(com.mongodb.event.CommandFailedEvent event) - Specified by:
commandFailedin interfacecom.mongodb.event.CommandListener
-