Package | Description |
---|---|
brave | |
brave.internal | |
brave.internal.recorder | |
brave.propagation | |
brave.sampler |
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.
|
Modifier and Type | Method and Description |
---|---|
Tracer.SpanInScope |
Tracer.withSpanInScope(Span span)
Makes the given span the "current span" and returns an object that exits that scope on close.
|
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 |
---|---|
TraceContext |
TraceContextOrSamplingFlags.context() |
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 |
TraceIdContext.sampled() |
Boolean |
TraceContextOrSamplingFlags.sampled()
Returns
SamplingFlags.sampled() , regardless of subtype. |
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.
|
SamplingFlags |
TraceContextOrSamplingFlags.samplingFlags() |
TraceIdContext |
TraceContextOrSamplingFlags.traceIdContext() |
Modifier and Type | Method and Description |
---|---|
static SamplingFlags |
SamplingFlags.Builder.build(Boolean sampled)
Allows you to create flags from a boolean value without allocating a builder instance
|
CurrentTraceContext.Scope |
StrictCurrentTraceContext.newScope(TraceContext currentSpan)
Identifies problems by throwing assertion errors when a scope is closed on a different thread.
|
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) |
abstract TraceContext.Builder |
TraceContext.Builder.parentId(Long parentId) |
abstract TraceIdContext.Builder |
TraceIdContext.Builder.sampled(Boolean nullableSampled) |
TraceContextOrSamplingFlags |
TraceContextOrSamplingFlags.sampled(Boolean sampled) |
abstract TraceContext.Builder |
TraceContext.Builder.sampled(Boolean nullableSampled) |
SamplingFlags.Builder |
SamplingFlags.Builder.sampled(Boolean sampled) |
Modifier and Type | Method and Description |
---|---|
Float |
DeclarativeSampler.RateForMethod.get(M method)
Returns null if there's no configured rate for this method
|
Modifier and Type | Method and Description |
---|---|
SamplingFlags |
DeclarativeSampler.sample(M method) |
SamplingFlags |
ParameterizedSampler.sample(P parameters) |
Copyright © 2017 OpenZipkin. All rights reserved.