Package brave.baggage
Class BaggagePropagationConfig.SingleBaggageField
- java.lang.Object
-
- brave.baggage.BaggagePropagationConfig
-
- brave.baggage.BaggagePropagationConfig.SingleBaggageField
-
- Enclosing class:
- BaggagePropagationConfig
public static class BaggagePropagationConfig.SingleBaggageField extends BaggagePropagationConfig
HoldsBaggagePropagationconfiguration for a baggage field.- Since:
- 5.11
- See Also:
BaggagePropagation,BaggageField
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaggagePropagationConfig.SingleBaggageField.Builder-
Nested classes/interfaces inherited from class brave.baggage.BaggagePropagationConfig
BaggagePropagationConfig.SingleBaggageField
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BaggageFieldfield()Set<String>keyNames()Returns a possibly empty list of lower-casepropagation key names.static BaggagePropagationConfig.SingleBaggageFieldlocal(BaggageField field)Configures this field for only local propagation.static BaggagePropagationConfig.SingleBaggageField.BuildernewBuilder(BaggageField field)static BaggagePropagationConfig.SingleBaggageFieldremote(BaggageField field)Configures this field for remote propagation using its lower-caseBaggageField.name()as the only propagation key name.BaggagePropagationConfig.SingleBaggageField.BuildertoBuilder()Allows decorators to reconfigure correlation of thisfield()
-
-
-
Method Detail
-
local
public static BaggagePropagationConfig.SingleBaggageField local(BaggageField field)
Configures this field for only local propagation. This will not be read from or written to remote headers.- Since:
- 5.11
- See Also:
remote(BaggageField)
-
remote
public static BaggagePropagationConfig.SingleBaggageField remote(BaggageField field)
Configures this field for remote propagation using its lower-caseBaggageField.name()as the only propagation key name.
-
newBuilder
public static BaggagePropagationConfig.SingleBaggageField.Builder newBuilder(BaggageField field)
- Since:
- 5.11
-
toBuilder
public BaggagePropagationConfig.SingleBaggageField.Builder toBuilder()
Allows decorators to reconfigure correlation of thisfield()- Since:
- 5.11
- See Also:
BaggagePropagationCustomizer
-
field
public BaggageField field()
-
keyNames
public Set<String> keyNames()
Returns a possibly empty list of lower-casepropagation key names. When empty, the field is not propagated remotely.- Since:
- 5.11
-
-