io.opentracing.Tracerpublic abstract class AbstractTracer
extends java.lang.Object
implements io.opentracing.Tracer
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
AbstractTracer.InternalLogLevel |
For mapping internal logs to Android log levels without importing Android
packages.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected static java.lang.String |
LIGHTSTEP_TRACER_PLATFORM_KEY |
|
protected static java.lang.String |
LIGHTSTEP_TRACER_PLATFORM_VERSION_KEY |
|
protected static java.lang.String |
LIGHTSTEP_TRACER_VERSION_KEY |
|
protected java.lang.Object |
mutex |
| Constructor | Description |
|---|---|
AbstractTracer(Options options) |
| Modifier and Type | Method | Description |
|---|---|---|
io.opentracing.Span |
activeSpan() |
|
protected void |
addTracerTag(java.lang.String key,
java.lang.Object value) |
|
io.opentracing.Tracer.SpanBuilder |
buildSpan(java.lang.String operationName) |
|
protected void |
debug(java.lang.String s) |
Internal logging.
|
protected void |
debug(java.lang.String msg,
java.lang.Object payload) |
Internal logging.
|
protected void |
error(java.lang.String s) |
Internal logging.
|
protected void |
error(java.lang.String msg,
java.lang.Object payload) |
Internal error.
|
<C> io.opentracing.SpanContext |
extract(io.opentracing.propagation.Format<C> format,
C carrier) |
|
java.lang.Boolean |
flush(long timeoutMillis) |
Initiates a flush of data to the collectors.
|
protected abstract SimpleFuture<java.lang.Boolean> |
flushInternal(boolean explicitRequest) |
|
protected void |
info(java.lang.String s) |
Internal logging.
|
protected void |
info(java.lang.String msg,
java.lang.Object payload) |
Internal logging.
|
<C> void |
inject(io.opentracing.SpanContext spanContext,
io.opentracing.propagation.Format<C> format,
C carrier) |
|
boolean |
isDisabled() |
|
protected abstract void |
printLogToConsole(AbstractTracer.InternalLogLevel level,
java.lang.String msg,
java.lang.Object payload) |
|
io.opentracing.ScopeManager |
scopeManager() |
|
protected boolean |
sendReport(boolean explicitRequest) |
Does the work of a flush by sending spans to the collector.
|
Status |
status() |
Internal method used primarily for unit testing and debugging.
|
protected void |
warn(java.lang.String s) |
Internal logging.
|
protected void |
warn(java.lang.String msg,
java.lang.Object payload) |
Internal warning.
|
protected static final java.lang.String LIGHTSTEP_TRACER_PLATFORM_KEY
protected static final java.lang.String LIGHTSTEP_TRACER_PLATFORM_VERSION_KEY
protected static final java.lang.String LIGHTSTEP_TRACER_VERSION_KEY
protected final java.lang.Object mutex
public AbstractTracer(Options options)
public boolean isDisabled()
public io.opentracing.ScopeManager scopeManager()
scopeManager in interface io.opentracing.Tracerpublic io.opentracing.Span activeSpan()
activeSpan in interface io.opentracing.Tracerpublic io.opentracing.Tracer.SpanBuilder buildSpan(java.lang.String operationName)
buildSpan in interface io.opentracing.Tracerpublic <C> void inject(io.opentracing.SpanContext spanContext,
io.opentracing.propagation.Format<C> format,
C carrier)
inject in interface io.opentracing.Tracerpublic <C> io.opentracing.SpanContext extract(io.opentracing.propagation.Format<C> format,
C carrier)
extract in interface io.opentracing.Tracerpublic java.lang.Boolean flush(long timeoutMillis)
timeoutMillis - The amount of time, in milliseconds, to allow for the flush to completeprotected abstract SimpleFuture<java.lang.Boolean> flushInternal(boolean explicitRequest)
protected boolean sendReport(boolean explicitRequest)
explicitRequest - if true, the report request was made explicitly rather than implicitly
(via a reporting loop) and therefore the code should make a 'best
effort' to truly report (i.e. send even if the clock state is not
ready).protected void addTracerTag(java.lang.String key,
java.lang.Object value)
protected void debug(java.lang.String s)
protected void debug(java.lang.String msg,
java.lang.Object payload)
protected void info(java.lang.String s)
protected void info(java.lang.String msg,
java.lang.Object payload)
protected void warn(java.lang.String s)
protected void warn(java.lang.String msg,
java.lang.Object payload)
protected void error(java.lang.String s)
protected void error(java.lang.String msg,
java.lang.Object payload)
protected abstract void printLogToConsole(AbstractTracer.InternalLogLevel level, java.lang.String msg, java.lang.Object payload)
public Status status()
Copyright © 2018 LightStep. All rights reserved.