public class TracingCommandListener extends Object implements com.mongodb.event.CommandListener
| Constructor and Description |
|---|
TracingCommandListener()
GlobalTracer is used to get tracer
|
TracingCommandListener(MongoSpanNameProvider customNameProvider)
GlobalTracer is used to get tracer
|
TracingCommandListener(io.opentracing.Tracer tracer) |
TracingCommandListener(io.opentracing.Tracer tracer,
MongoSpanNameProvider customNameProvider) |
| 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 TracingCommandListener(io.opentracing.Tracer tracer)
public TracingCommandListener()
public TracingCommandListener(io.opentracing.Tracer tracer,
MongoSpanNameProvider customNameProvider)
public TracingCommandListener(MongoSpanNameProvider customNameProvider)
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-2018–2018. All rights reserved.