| Package | Description |
|---|---|
| brave | |
| brave.internal | |
| brave.internal.recorder | |
| brave.propagation |
| Modifier and Type | Method and Description |
|---|---|
abstract TraceContext |
Span.context() |
| Modifier and Type | Method and Description |
|---|---|
Span |
Tracer.joinSpan(TraceContext context)
Joining is re-using the same trace and span ids extracted from an incoming request.
|
Span |
Tracer.newChild(TraceContext parent)
Creates a new span within an existing trace.
|
Span |
Tracer.toSpan(TraceContext context)
Converts the context as-is to a Span object
|
| Modifier and Type | Method and Description |
|---|---|
TraceContext |
StrictCurrentTraceContext.get() |
| Modifier and Type | Method and Description |
|---|---|
CurrentTraceContext.Scope |
StrictCurrentTraceContext.newScope(TraceContext currentSpan)
Identifies problems by throwing assertion errors when a scope is closed on a different thread.
|
abstract Long |
Internal.timestamp(Tracer tracer,
TraceContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
Recorder.annotate(TraceContext context,
long timestamp,
String value) |
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,
zipkin.Endpoint remoteEndpoint) |
void |
Recorder.start(TraceContext context,
long timestamp) |
void |
Recorder.tag(TraceContext context,
String key,
String value) |
Long |
Recorder.timestamp(TraceContext context)
Hook needed for Brave 3's LocalTracer.finish(duration)
|
| Modifier and Type | Method and Description |
|---|---|
abstract TraceContext |
TraceContext.Builder.build() |
abstract TraceContext |
TraceContextOrSamplingFlags.context()
When present, create the span via
Tracer.joinSpan(TraceContext) |
abstract TraceContext |
CurrentTraceContext.get()
Returns the current span in scope or null if there isn't one.
|
TraceContext |
CurrentTraceContext.Default.get() |
| Modifier and Type | Method and Description |
|---|---|
void |
TraceContext.Injector.inject(TraceContext traceContext,
C carrier)
Usually calls a setter for each propagation field to send downstream.
|
abstract CurrentTraceContext.Scope |
CurrentTraceContext.newScope(TraceContext currentSpan)
Sets the current span in scope until the returned object is closed.
|
CurrentTraceContext.Scope |
CurrentTraceContext.Default.newScope(TraceContext currentSpan) |
Copyright © 2017 OpenZipkin. All rights reserved.