Class OpenTracingRequestTracer
- java.lang.Object
-
- com.couchbase.client.tracing.opentracing.OpenTracingRequestTracer
-
- All Implemented Interfaces:
com.couchbase.client.core.cnc.RequestTracer
public class OpenTracingRequestTracer extends Object implements com.couchbase.client.core.cnc.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.couchbase.client.core.cnc.RequestSpanrequestSpan(String operationName, com.couchbase.client.core.cnc.RequestSpan parent)Mono<Void>start()Mono<Void>stop(Duration timeout)io.opentracing.Tracertracer()Returns the inner OpenTracing tracer.static OpenTracingRequestTracerwrap(io.opentracing.Tracer tracer)Wraps the OpenTracing tracer and returns a datatype that can be passed into the requestTracer method of the environment.
-
-
-
Method Detail
-
wrap
public 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.- Parameters:
tracer- the tracer to wrap.- Returns:
- the wrapped tracer ready to be passed in.
-
requestSpan
public com.couchbase.client.core.cnc.RequestSpan requestSpan(String operationName, com.couchbase.client.core.cnc.RequestSpan parent)
- Specified by:
requestSpanin interfacecom.couchbase.client.core.cnc.RequestTracer
-
tracer
public io.opentracing.Tracer tracer()
Returns the inner OpenTracing tracer.
-
start
public Mono<Void> start()
- Specified by:
startin interfacecom.couchbase.client.core.cnc.RequestTracer
-
-