| Package | Description |
|---|---|
| brave | |
| brave.internal | |
| 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 as-is to a Span object
|
| Modifier and Type | Method | Description |
|---|---|---|
TraceContext |
PropagationFieldsFactory.decorate(TraceContext context) |
| Modifier and Type | Method | Description |
|---|---|---|
TraceContext |
PropagationFieldsFactory.decorate(TraceContext context) |
|
static String |
PropagationFields.get(TraceContext context,
String name) |
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) |
Replaces the value of the field with the specified key, ignoring if not a permitted field
|
| 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.maybeScope(TraceContext currentSpan) |
Like
CurrentTraceContext.newScope(TraceContext), except returns CurrentTraceContext.Scope.NOOP if the given context is
already in scope. |
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.