Uses of Class
brave.baggage.BaggageField
Package | Description |
---|---|
brave | |
brave.baggage |
-
Uses of BaggageField in brave
Fields in brave with type parameters of type BaggageField Modifier and Type Field Description static Tag<BaggageField>
Tags. BAGGAGE_FIELD
This tags the baggage value usingname()
as the key. -
Uses of BaggageField in brave.baggage
Fields in brave.baggage declared as BaggageField Modifier and Type Field Description static BaggageField
BaggageFields. PARENT_ID
Typically only useful when spans are parsed from log records.static BaggageField
BaggageFields. SAMPLED
This is only useful whenBaggageFields.TRACE_ID
is also a baggage field.static BaggageField
BaggageFields. SPAN_ID
Used withBaggageFields.TRACE_ID
to correlate a log line with a span.static BaggageField
BaggageFields. TRACE_ID
This is the most common log correlation field.Methods in brave.baggage that return BaggageField Modifier and Type Method Description BaggageField
CorrelationScopeConfig.SingleCorrelationField. baggageField()
static BaggageField
BaggageFields. constant(String name, String value)
Creates a local baggage field based on a possibly null constant, such as an ENV variable.static BaggageField
BaggageField. create(String name)
BaggageField
BaggagePropagationConfig.SingleBaggageField. field()
static BaggageField
BaggageField. getByName(TraceContextOrSamplingFlags extracted, String name)
Looks up the field byname
, useful for when you do not have a reference to it.static BaggageField
BaggageField. getByName(TraceContext context, String name)
Looks up the field byname
, useful for when you do not have a reference to it.static BaggageField
BaggageField. getByName(String name)
LikegetByName(TraceContext, String)
except against the current trace context.Methods in brave.baggage that return types with arguments of type BaggageField Modifier and Type Method Description static List<BaggageField>
BaggageField. getAll()
Deprecated.Since 5.12 usegetAllValues(TraceContext)
static List<BaggageField>
BaggageField. getAll(TraceContext context)
Deprecated.Since 5.12 usegetAllValues(TraceContext)
static List<BaggageField>
BaggageField. getAll(TraceContextOrSamplingFlags extracted)
Deprecated.Since 5.12 usegetAllValues(TraceContext)
Methods in brave.baggage with parameters of type BaggageField Modifier and Type Method Description static CorrelationScopeConfig.SingleCorrelationField
CorrelationScopeConfig.SingleCorrelationField. create(BaggageField baggageField)
static BaggagePropagationConfig.SingleBaggageField
BaggagePropagationConfig.SingleBaggageField. local(BaggageField field)
Configures this field for only local propagation.static BaggagePropagationConfig.SingleBaggageField.Builder
BaggagePropagationConfig.SingleBaggageField. newBuilder(BaggageField field)
static CorrelationScopeConfig.SingleCorrelationField.Builder
CorrelationScopeConfig.SingleCorrelationField. newBuilder(BaggageField baggageField)
static BaggagePropagationConfig.SingleBaggageField
BaggagePropagationConfig.SingleBaggageField. remote(BaggageField field)
Configures this field for remote propagation using its lower-casename()
as the only propagation key name.boolean
BaggageField.ValueUpdater. updateValue(BaggageField field, String value)
Updates the value of the field, or ignores if read-only or not configured.