Class ThresholdLogTracer
- java.lang.Object
-
- com.couchbase.client.core.tracing.ThresholdLogTracer
-
- All Implemented Interfaces:
io.opentracing.Tracer
public class ThresholdLogTracer extends Object implements io.opentracing.Tracer
ThisTracer
implementation logs operations over a certain threshold based on the given configuration.- Since:
- 1.6.0
- Author:
- Michael Nitschinger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.opentracing.Span
activeSpan()
io.opentracing.Tracer.SpanBuilder
buildSpan(String operationName)
static ThresholdLogTracer
create()
Creates a new tracer with default settings.static ThresholdLogTracer
create(ThresholdLogReporter reporter)
Creates a new tracer with a custom reporter.<C> io.opentracing.SpanContext
extract(io.opentracing.propagation.Format<C> format, C carrier)
<C> void
inject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
void
reportSpan(ThresholdLogSpan span)
Feeds the span into the reporter for further processing.io.opentracing.ScopeManager
scopeManager()
void
shutdown()
-
-
-
Method Detail
-
create
public static ThresholdLogTracer create()
Creates a new tracer with default settings.
-
create
public static ThresholdLogTracer create(ThresholdLogReporter reporter)
Creates a new tracer with a custom reporter.- Parameters:
reporter
- the reporter to use.
-
scopeManager
public io.opentracing.ScopeManager scopeManager()
- Specified by:
scopeManager
in interfaceio.opentracing.Tracer
-
activeSpan
public io.opentracing.Span activeSpan()
- Specified by:
activeSpan
in interfaceio.opentracing.Tracer
-
buildSpan
public io.opentracing.Tracer.SpanBuilder buildSpan(String operationName)
- Specified by:
buildSpan
in interfaceio.opentracing.Tracer
-
inject
public <C> void inject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
- Specified by:
inject
in interfaceio.opentracing.Tracer
-
extract
public <C> io.opentracing.SpanContext extract(io.opentracing.propagation.Format<C> format, C carrier)
- Specified by:
extract
in interfaceio.opentracing.Tracer
-
reportSpan
public void reportSpan(ThresholdLogSpan span)
Feeds the span into the reporter for further processing.- Parameters:
span
- the param to report.
-
shutdown
public void shutdown()
-
-