public class BaggageSetter
extends java.lang.Object
JaegerSpan
.Constructor and Description |
---|
BaggageSetter(BaggageRestrictionManager restrictionManager,
Metrics metrics) |
Modifier and Type | Method and Description |
---|---|
JaegerSpanContext |
setBaggage(JaegerSpan jaegerSpan,
java.lang.String key,
java.lang.String value)
Sets the baggage key:value on the
JaegerSpan and the corresponding
logs. |
public BaggageSetter(BaggageRestrictionManager restrictionManager, Metrics metrics)
public JaegerSpanContext setBaggage(JaegerSpan jaegerSpan, java.lang.String key, java.lang.String value)
JaegerSpan
and the corresponding
logs. Whether the baggage is set on the span depends on if the key
is allowed to be set by this service.
A JaegerSpanContext
is returned with the new baggage key:value set
if key is valid, else returns the existing JaegerSpanContext
on the JaegerSpan
.
jaegerSpan
- the span to set the baggage onkey
- the baggage key to setvalue
- the baggage value to set