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 Details

    • 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 RequestSpan requestSpan​(String operationName, RequestSpan parent)
      Specified by:
      requestSpan in interface RequestTracer
    • tracer

      public io.opentracing.Tracer tracer()
      Returns the inner OpenTracing tracer.
    • start

      public Mono<Void> start()
      Specified by:
      start in interface RequestTracer
    • stop

      public Mono<Void> stop​(Duration timeout)
      Specified by:
      stop in interface RequestTracer