Class OpenTracingRequestTracer
java.lang.Object
com.couchbase.client.tracing.opentracing.OpenTracingRequestTracer
- All Implemented Interfaces:
RequestTracer
public class OpenTracingRequestTracer extends Object implements RequestTracer
Wraps the OpenTracing tracer so it is suitable to be passed in into the couchbase environment and picked up
by the rest of the SDK as a result.
-
Method Summary
Modifier and Type Method Description RequestSpan
requestSpan(String operationName, RequestSpan parent)
Mono<Void>
start()
Mono<Void>
stop(Duration timeout)
io.opentracing.Tracer
tracer()
Returns the inner OpenTracing tracer.static OpenTracingRequestTracer
wrap(io.opentracing.Tracer tracer)
Wraps the OpenTracing tracer and returns a datatype that can be passed into the requestTracer method of the environment.
-
Method Details
-
wrap
Wraps the OpenTracing tracer and returns a datatype that can be passed into the requestTracer method of the environment.- Parameters:
tracer
- the tracer to wrap.- Returns:
- the wrapped tracer ready to be passed in.
-
requestSpan
- Specified by:
requestSpan
in interfaceRequestTracer
-
tracer
public io.opentracing.Tracer tracer()Returns the inner OpenTracing tracer. -
start
- Specified by:
start
in interfaceRequestTracer
-
stop
- Specified by:
stop
in interfaceRequestTracer
-