Class ThresholdLogTracer
java.lang.Object
com.couchbase.client.core.tracing.ThresholdLogTracer
- All Implemented Interfaces:
io.opentracing.Tracer
This
Tracer
implementation logs operations over a certain threshold based
on the given configuration.- Since:
- 1.6.0
- Author:
- Michael Nitschinger
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.opentracing.Tracer
io.opentracing.Tracer.SpanBuilder
-
Method Summary
Modifier and TypeMethodDescriptionio.opentracing.Span
io.opentracing.Tracer.SpanBuilder
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
void
shutdown()
-
Method Details
-
create
Creates a new tracer with default settings. -
create
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
- 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
Feeds the span into the reporter for further processing.- Parameters:
span
- the param to report.
-
shutdown
public void shutdown()
-