Uses of Class
brave.propagation.CurrentTraceContext
Package | Description |
---|---|
brave | |
brave.propagation |
-
Uses of CurrentTraceContext in brave
Methods in brave that return CurrentTraceContext Modifier and Type Method Description abstract CurrentTraceContext
Tracing. currentTraceContext()
This supports in-process propagation, typically across thread boundaries.Methods in brave with parameters of type CurrentTraceContext Modifier and Type Method Description Tracing.Builder
Tracing.Builder. currentTraceContext(CurrentTraceContext currentTraceContext)
Responsible for implementingTracer.startScopedSpan(String)
,Tracer.currentSpanCustomizer()
,Tracer.currentSpan()
andTracer.withSpanInScope(Span)
. -
Uses of CurrentTraceContext in brave.propagation
Subclasses of CurrentTraceContext in brave.propagation Modifier and Type Class Description static class
CurrentTraceContext.Default
Default implementation which is backed by a static thread local.class
StrictCurrentTraceContext
Useful when developing instrumentation as state is enforced more strictly.class
ThreadLocalCurrentTraceContext
In-process trace context propagation backed by a static thread local.Methods in brave.propagation that return CurrentTraceContext Modifier and Type Method Description abstract CurrentTraceContext
CurrentTraceContext.Builder. build()
static CurrentTraceContext
CurrentTraceContext.Default. create()
Uses a non-inheritable static thread localstatic CurrentTraceContext
ThreadLocalCurrentTraceContext. create()
static CurrentTraceContext
CurrentTraceContext.Default. inheritable()
Uses an inheritable static thread local which allows arbitrary calls toThread.start()
to automatically inherit this context.