Package | Description |
---|---|
brave | |
brave.internal.recorder | |
brave.propagation |
Modifier and Type | Method | Description |
---|---|---|
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.
|
Span |
Tracer.toSpan(TraceContext context) |
Converts the context as-is to a Span object
|
Modifier and Type | Method | Description |
---|---|---|
void |
Recorder.abandon(TraceContext context) |
|
void |
Recorder.annotate(TraceContext context,
long timestamp,
String value) |
|
void |
Recorder.annotate(TraceContext context,
String value) |
|
Clock |
Recorder.clock(TraceContext context) |
Returns a clock that ensures timestamp consistency across the trace
|
void |
Recorder.finish(TraceContext context) |
|
void |
Recorder.finish(TraceContext context,
long finishTimestamp) |
|
void |
Recorder.flush(TraceContext context) |
|
void |
Recorder.kind(TraceContext context,
Span.Kind kind) |
|
void |
Recorder.name(TraceContext context,
String name) |
|
void |
Recorder.remoteEndpoint(TraceContext context,
zipkin2.Endpoint remoteEndpoint) |
|
void |
Recorder.setShared(TraceContext context) |
Indicates we are contributing to a span started by another tracer (ex on a different host).
|
void |
Recorder.start(TraceContext context) |
|
void |
Recorder.start(TraceContext context,
long timestamp) |
|
void |
Recorder.tag(TraceContext context,
String key,
String value) |
Modifier and Type | Method | Description |
---|---|---|
TraceContext |
TraceContext.Builder.build() |
|
TraceContext |
TraceContextOrSamplingFlags.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.
|
TraceContext |
CurrentTraceContext.Default.get() |
|
abstract TraceContext |
CurrentTraceContext.get() |
Returns the current span in scope or null if there isn't one.
|
TraceContext |
StrictCurrentTraceContext.get() |
Modifier and Type | Method | Description |
---|---|---|
TraceContextOrSamplingFlags.Builder |
TraceContextOrSamplingFlags.Builder.context(TraceContext context) |
|
static TraceContextOrSamplingFlags |
TraceContextOrSamplingFlags.create(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.
|
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.Default.newScope(TraceContext currentSpan) |
|
abstract CurrentTraceContext.Scope |
CurrentTraceContext.newScope(TraceContext currentSpan) |
Sets the current span in scope until the returned object is closed.
|
CurrentTraceContext.Scope |
StrictCurrentTraceContext.newScope(TraceContext currentSpan) |
Identifies problems by throwing assertion errors when a scope is closed on a different thread.
|
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
|
Copyright © 2018 OpenZipkin. All rights reserved.