Uses of Class
brave.propagation.TraceContextOrSamplingFlags
Package | Description |
---|---|
brave | |
brave.baggage | |
brave.propagation |
-
Uses of TraceContextOrSamplingFlags in brave
Methods in brave with parameters of type TraceContextOrSamplingFlags Modifier and Type Method Description Span
Tracer. nextSpan(TraceContextOrSamplingFlags extracted)
This creates a new span based on parameters extracted from an incoming request. -
Uses of TraceContextOrSamplingFlags in brave.baggage
Methods in brave.baggage with parameters of type TraceContextOrSamplingFlags Modifier and Type Method Description static List<BaggageField>
BaggageField. getAll(TraceContextOrSamplingFlags extracted)
Deprecated.Since 5.12 useBaggageField.getAllValues(TraceContext)
static Map<String,String>
BaggageField. getAllValues(TraceContextOrSamplingFlags extracted)
static BaggageField
BaggageField. getByName(TraceContextOrSamplingFlags extracted, String name)
Looks up the field byname
, useful for when you do not have a reference to it.String
BaggageField. getValue(TraceContextOrSamplingFlags extracted)
LikeBaggageField.getValue(TraceContext)
except for use cases that precede a span.boolean
BaggageField. updateValue(TraceContextOrSamplingFlags extracted, String value)
LikeBaggageField.updateValue(TraceContext, String)
except for use cases that precede a span. -
Uses of TraceContextOrSamplingFlags in brave.propagation
Fields in brave.propagation declared as TraceContextOrSamplingFlags Modifier and Type Field Description static TraceContextOrSamplingFlags
TraceContextOrSamplingFlags. DEBUG
static TraceContextOrSamplingFlags
TraceContextOrSamplingFlags. EMPTY
static TraceContextOrSamplingFlags
TraceContextOrSamplingFlags. NOT_SAMPLED
static TraceContextOrSamplingFlags
TraceContextOrSamplingFlags. SAMPLED
Methods in brave.propagation that return TraceContextOrSamplingFlags Modifier and Type Method Description TraceContextOrSamplingFlags
TraceContextOrSamplingFlags.Builder. build()
Returns an immutable result from the values currently in the builderstatic TraceContextOrSamplingFlags
TraceContextOrSamplingFlags. create(SamplingFlags flags)
Used to implementTraceContext.Extractor.extract(Object)
when the format allows extracting only sampling flags.static TraceContextOrSamplingFlags
TraceContextOrSamplingFlags. create(TraceContext context)
Used to implementTraceContext.Extractor.extract(Object)
for a format that can extract a completeTraceContext
, including a trace ID and span ID.static TraceContextOrSamplingFlags
TraceContextOrSamplingFlags. create(TraceIdContext traceIdContext)
Used to implementTraceContext.Extractor.extract(Object)
when the format allows extracting a trace ID without a span IDstatic TraceContextOrSamplingFlags
TraceContextOrSamplingFlags. create(Boolean sampled, boolean debug)
Deprecated.Since 5.12, use constants defined on this type as needed.TraceContextOrSamplingFlags
TraceContext.Extractor. extract(R request)
Returns either a trace context or sampling flags parsed from the request.static TraceContextOrSamplingFlags
B3SingleFormat. parseB3SingleFormat(CharSequence b3)
static TraceContextOrSamplingFlags
B3SingleFormat. parseB3SingleFormat(CharSequence value, int beginIndex, int endIndex)
This reads a trace context a sequence potentially larger than the format.TraceContextOrSamplingFlags
TraceContextOrSamplingFlags. sampled(boolean sampled)
This is used to apply aSamplerFunction
decision with least overhead.TraceContextOrSamplingFlags
TraceContextOrSamplingFlags. sampled(Boolean sampled)
Deprecated.do not use object variant..Methods in brave.propagation with parameters of type TraceContextOrSamplingFlags Modifier and Type Method Description static Map<String,String>
ExtraFieldPropagation. getAll(TraceContextOrSamplingFlags extracted)
Deprecated.Since 5.11 useBaggageField.getAll(TraceContextOrSamplingFlags)
Span
ThreadLocalSpan. next(TraceContextOrSamplingFlags extracted)
Returns theTracer.nextSpan(TraceContextOrSamplingFlags)
or null ifThreadLocalSpan.CURRENT_TRACER
and tracing isn't available.