| Package | Description |
|---|---|
| brave | |
| brave.handler | |
| brave.internal | |
| brave.internal.handler | |
| brave.internal.propagation | |
| brave.internal.recorder | |
| brave.propagation |
| Modifier and Type | Method | Description |
|---|---|---|
abstract TraceContext |
ScopedSpan.context() |
Returns the trace context associated with this span
|
abstract TraceContext |
Span.context() |
| Modifier and Type | Method | Description |
|---|---|---|
Clock |
Tracing.clock(TraceContext context) |
This exposes the microsecond clock used by operations such as
Span.finish(). |
Span |
Tracer.joinSpan(TraceContext context) |
Joining is re-using the same trace and span ids extracted from an incoming RPC request.
|
Span |
Tracer.newChild(TraceContext parent) |
Explicitly creates a child within an existing trace.
|
ScopedSpan |
Tracer.startScopedSpanWithParent(String name,
TraceContext parent) |
Same as
Tracer.startScopedSpan(String), except ignores the current trace context. |
Span |
Tracer.toSpan(TraceContext context) |
Converts the context to a Span object after decorating it for propagation
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract boolean |
FinishedSpanHandler.handle(TraceContext context,
MutableSpan span) |
This is invoked after a span is finished, allowing data to be modified or reported out of
process.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected TraceContext |
ExtraFactory.contextWithExtra(TraceContext context,
List<Object> immutableExtra) |
|
protected TraceContext |
PropagationFieldsFactory.contextWithExtra(TraceContext context,
List<Object> immutableExtra) |
|
TraceContext |
ExtraFactory.decorate(TraceContext context) |
|
abstract TraceContext |
InternalPropagation.newTraceContext(int flags,
long traceIdHigh,
long traceId,
long parentId,
long spanId,
List<Object> extra) |
|
abstract TraceContext |
InternalPropagation.withExtra(TraceContext context,
List<Object> immutableExtra) |
TraceContext is immutable so you need to read the result
|
abstract TraceContext |
InternalPropagation.withFlags(TraceContext context,
int flags) |
TraceContext is immutable so you need to read the result
|
| Modifier and Type | Method | Description |
|---|---|---|
protected TraceContext |
ExtraFactory.contextWithExtra(TraceContext context,
List<Object> immutableExtra) |
|
protected TraceContext |
PropagationFieldsFactory.contextWithExtra(TraceContext context,
List<Object> immutableExtra) |
|
TraceContext |
ExtraFactory.decorate(TraceContext context) |
|
static String |
PropagationFields.get(TraceContext context,
String name,
Class<? extends PropagationFields> type) |
Returns the value of the field with the specified key or null if not available
|
static boolean |
HexCodec.lowerHexEqualsTraceId(CharSequence lowerHex,
TraceContext context) |
|
static void |
PropagationFields.put(TraceContext context,
String name,
String value,
Class<? extends PropagationFields> type) |
Replaces the value of the field with the specified key, ignoring if not a permitted field
|
abstract TraceContext |
InternalPropagation.withExtra(TraceContext context,
List<Object> immutableExtra) |
TraceContext is immutable so you need to read the result
|
abstract TraceContext |
InternalPropagation.withFlags(TraceContext context,
int flags) |
TraceContext is immutable so you need to read the result
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
ZipkinFinishedSpanHandler.handle(TraceContext context,
MutableSpan span) |
| Modifier and Type | Method | Description |
|---|---|---|
CurrentTraceContext.Scope |
CorrelationFieldScopeDecorator.decorateScope(TraceContext currentSpan,
CurrentTraceContext.Scope scope) |
When the input is not null "traceId", "parentId" and "spanId" correlation properties are saved
off and replaced with those of the current span.
|
| Modifier and Type | Method | Description |
|---|---|---|
PendingSpan |
PendingSpans.getOrCreate(TraceContext context,
boolean start) |
|
boolean |
PendingSpans.remove(TraceContext context) |
| Modifier and Type | Method | Description |
|---|---|---|
TraceContext |
TraceContext.Builder.build() |
|
TraceContext |
TraceContextOrSamplingFlags.context() |
|
TraceContext |
ExtraFieldPropagation.Factory.decorate(TraceContext context) |
|
TraceContext |
Propagation.Factory.decorate(TraceContext context) |
Decorates the input such that it can propagate extra data, such as a timestamp or a carrier
for extra fields.
|
abstract TraceContext |
CurrentTraceContext.get() |
Returns the current span in scope or null if there isn't one.
|
TraceContext |
ThreadLocalCurrentTraceContext.get() |
| Modifier and Type | Method | Description |
|---|---|---|
TraceContextOrSamplingFlags.Builder |
TraceContextOrSamplingFlags.Builder.context(TraceContext context) |
|
static TraceContextOrSamplingFlags |
TraceContextOrSamplingFlags.create(TraceContext context) |
|
TraceContext |
ExtraFieldPropagation.Factory.decorate(TraceContext context) |
|
TraceContext |
Propagation.Factory.decorate(TraceContext context) |
Decorates the input such that it can propagate extra data, such as a timestamp or a carrier
for extra fields.
|
protected CurrentTraceContext.Scope |
CurrentTraceContext.decorateScope(TraceContext currentSpan,
CurrentTraceContext.Scope scope) |
When implementing CurrentTraceContext.newScope(TraceContext), decorate the result before returning
it.
|
CurrentTraceContext.Scope |
CurrentTraceContext.ScopeDecorator.decorateScope(TraceContext currentSpan,
CurrentTraceContext.Scope scope) |
|
CurrentTraceContext.Scope |
StrictScopeDecorator.decorateScope(TraceContext currentSpan,
CurrentTraceContext.Scope scope) |
Identifies problems by throwing assertion errors when a scope is closed on a different thread.
|
static String |
ExtraFieldPropagation.get(TraceContext context,
String name) |
Returns the value of the field with the specified key or null if not available
|
static Map<String,String> |
ExtraFieldPropagation.getAll(TraceContext context) |
Returns a mapping of any fields in the trace context.
|
void |
TraceContext.Injector.inject(TraceContext traceContext,
C carrier) |
Usually calls a setter for each propagation field to send downstream.
|
CurrentTraceContext.Scope |
CurrentTraceContext.maybeScope(TraceContext currentSpan) |
Like
CurrentTraceContext.newScope(TraceContext), except returns CurrentTraceContext.Scope.NOOP if the given context is
already in scope. |
abstract CurrentTraceContext.Scope |
CurrentTraceContext.newScope(TraceContext currentSpan) |
Sets the current span in scope until the returned object is closed.
|
CurrentTraceContext.Scope |
ThreadLocalCurrentTraceContext.newScope(TraceContext currentSpan) |
|
static void |
ExtraFieldPropagation.set(TraceContext context,
String name,
String value) |
Sets the value of the field with the specified key, or drops if not a configured field
|
static String |
B3SingleFormat.writeB3SingleFormat(TraceContext context) |
Writes all B3 defined fields in the trace context to a hyphen delimited string.
|
static byte[] |
B3SingleFormat.writeB3SingleFormatAsBytes(TraceContext context) |
Like
B3SingleFormat.writeB3SingleFormatAsBytes(TraceContext), but for carriers with byte array or
byte buffer values. |
static String |
B3SingleFormat.writeB3SingleFormatWithoutParentId(TraceContext context) |
Writes all B3 defined fields in the trace context, except
parent ID, to a hyphen delimited string. |
static byte[] |
B3SingleFormat.writeB3SingleFormatWithoutParentIdAsBytes(TraceContext context) |
Like
B3SingleFormat.writeB3SingleFormatWithoutParentId(TraceContext), but for carriers with byte
array or byte buffer values. |
Copyright © 2018 OpenZipkin. All rights reserved.