public class TracingCommandListener extends Object implements com.mongodb.event.CommandListener
| Modifier and Type | Class and Description |
|---|---|
static class |
TracingCommandListener.Builder |
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_NAME |
| Constructor and Description |
|---|
TracingCommandListener(io.opentracing.Tracer tracer,
MongoSpanNameProvider customNameProvider,
List<ExcludedCommand> excludedCommands) |
| Modifier and Type | Method and Description |
|---|---|
void |
commandFailed(com.mongodb.event.CommandFailedEvent event) |
void |
commandStarted(com.mongodb.event.CommandStartedEvent event) |
void |
commandSucceeded(com.mongodb.event.CommandSucceededEvent event) |
public static final String COMPONENT_NAME
public TracingCommandListener(io.opentracing.Tracer tracer,
MongoSpanNameProvider customNameProvider,
List<ExcludedCommand> excludedCommands)
public void commandStarted(com.mongodb.event.CommandStartedEvent event)
commandStarted in interface com.mongodb.event.CommandListenerpublic void commandSucceeded(com.mongodb.event.CommandSucceededEvent event)
commandSucceeded in interface com.mongodb.event.CommandListenerpublic void commandFailed(com.mongodb.event.CommandFailedEvent event)
commandFailed in interface com.mongodb.event.CommandListenerCopyright © 2017-2019–2019. All rights reserved.