Uses of Class
brave.propagation.TraceContextOrSamplingFlags
-
Packages that use 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 SpanTracer. 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 BaggageFieldBaggageField. getByName(TraceContextOrSamplingFlags extracted, String name)Looks up the field byname, useful for when you do not have a reference to it.StringBaggageField. getValue(TraceContextOrSamplingFlags extracted)LikeBaggageField.getValue(TraceContext)except for use cases that precede a span.booleanBaggageField. 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 TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. DEBUGstatic TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. EMPTYstatic TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. NOT_SAMPLEDstatic TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. SAMPLEDMethods in brave.propagation that return TraceContextOrSamplingFlags Modifier and Type Method Description TraceContextOrSamplingFlagsTraceContextOrSamplingFlags.Builder. build()Returns an immutable result from the values currently in the builderstatic TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. create(SamplingFlags flags)Used to implementTraceContext.Extractor.extract(Object)when the format allows extracting only sampling flags.static TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. 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 TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. create(TraceIdContext traceIdContext)Used to implementTraceContext.Extractor.extract(Object)when the format allows extracting a trace ID without a span IDstatic TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. create(Boolean sampled, boolean debug)Deprecated.Since 5.12, use constants defined on this type as needed.TraceContextOrSamplingFlagsTraceContext.Extractor. extract(R request)Returns either a trace context or sampling flags parsed from the request.static TraceContextOrSamplingFlagsB3SingleFormat. parseB3SingleFormat(CharSequence b3)static TraceContextOrSamplingFlagsB3SingleFormat. parseB3SingleFormat(CharSequence value, int beginIndex, int endIndex)This reads a trace context a sequence potentially larger than the format.TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. sampled(boolean sampled)This is used to apply aSamplerFunctiondecision with least overhead.TraceContextOrSamplingFlagsTraceContextOrSamplingFlags. 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)SpanThreadLocalSpan. next(TraceContextOrSamplingFlags extracted)Returns theTracer.nextSpan(TraceContextOrSamplingFlags)or null ifThreadLocalSpan.CURRENT_TRACERand tracing isn't available.
-