- withSpanInScope
Makes the given span the "current span" and returns an object that exits that
scope on close. Calls
- nextSpan
This creates a new span based on parameters extracted from an incoming request.
This will always res
- currentSpan
Returns the current span in scope or null if there isn't one.When entering user
code, prefer #curren
- newChild
Explicitly creates a child within an existing trace. The result will be have its
parent ID set to th
- joinSpan
Joining is re-using the same trace and span ids extracted from an incoming RPC
request. This should
- newTrace
Explicitly creates a new trace. The result will be a root span (no parent span
ID).To implicitly cre
- toSpan
Converts the context to a Span object after decorating it for propagation
- withSampler
Use this to temporarily override the sampler used when starting new traces. This
also serves advance
- startScopedSpan
Returns a new child span if there's a #currentSpan() or a new trace if there
isn't. The result is th
- startScopedSpanWithParent
Same as #startScopedSpan(String), except ignores the current trace context.Use
this when you are cre
- <init>
- _toSpan