| Package | Description |
|---|---|
| brave | |
| brave.internal | |
| brave.internal.recorder | |
| brave.propagation |
| Modifier and Type | Method and Description |
|---|---|
static Tracing |
Tracing.current()
Returns the most recently created tracing component iff it hasn't been closed.
|
Span |
Tracer.currentSpan()
Returns the current span in scope or null if there isn't one.
|
static Tracer |
Tracing.currentTracer()
Returns the most recently created tracer iff its component hasn't been closed.
|
Span |
Tracer.nextSpan()
Returns a new child span if there's a
Tracer.currentSpan() or a new trace if there isn't. |
| Modifier and Type | Method and Description |
|---|---|
abstract Long |
Internal.timestamp(Tracer tracer,
TraceContext context) |
| Modifier and Type | Method and Description |
|---|---|
Long |
Recorder.timestamp(TraceContext context)
Hook needed for Brave 3's LocalTracer.finish(duration)
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
String |
Propagation.Getter.get(C carrier,
K key) |
abstract Long |
TraceContext.parentId()
The parent's
TraceContext.spanId() or null if this the root span in a trace. |
abstract Boolean |
TraceContext.sampled() |
abstract Boolean |
SamplingFlags.sampled()
Should we sample this request or not? True means sample, false means don't, null means we defer
decision to someone further down in the stack.
|
abstract SamplingFlags |
TraceContextOrSamplingFlags.samplingFlags()
When present, create the span via
Tracer.newTrace(SamplingFlags) |
| Modifier and Type | Method and Description |
|---|---|
abstract TraceContext.Builder |
TraceContext.Builder.parentId(Long parentId) |
SamplingFlags.Builder |
SamplingFlags.Builder.sampled(Boolean sampled) |
Copyright © 2017 OpenZipkin. All rights reserved.