public class ThresholdLogTracer extends Object implements io.opentracing.Tracer
This Tracer
implementation logs operations over a certain threshold based on the given configuration.
Modifier and Type | Method and 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() |
public static ThresholdLogTracer create()
Creates a new tracer with default settings.
public static ThresholdLogTracer create(ThresholdLogReporter reporter)
Creates a new tracer with a custom reporter.
reporter
- the reporter to use.public io.opentracing.ScopeManager scopeManager()
scopeManager
in interface io.opentracing.Tracer
public io.opentracing.Span activeSpan()
activeSpan
in interface io.opentracing.Tracer
public io.opentracing.Tracer.SpanBuilder buildSpan(String operationName)
buildSpan
in interface io.opentracing.Tracer
public <C> void inject(io.opentracing.SpanContext spanContext, io.opentracing.propagation.Format<C> format, C carrier)
inject
in interface io.opentracing.Tracer
public <C> io.opentracing.SpanContext extract(io.opentracing.propagation.Format<C> format, C carrier)
extract
in interface io.opentracing.Tracer
public void reportSpan(ThresholdLogSpan span)
Feeds the span into the reporter for further processing.
span
- the param to report.public void shutdown()
Copyright © 2018 Couchbase, Inc.. All rights reserved.