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
Holds
BaggagePropagation configuration for a baggage field.- Since:
- 5.11
- See Also:
BaggagePropagation,BaggageField
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBaggagePropagationConfig.SingleBaggageField.BuilderNested classes/interfaces inherited from class brave.baggage.BaggagePropagationConfig
BaggagePropagationConfig.SingleBaggageField -
Method Summary
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 Details
-
local
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
Configures this field for remote propagation using its lower-caseBaggageField.name()as the only propagation key name. -
newBuilder
- Since:
- 5.11
-
toBuilder
Allows decorators to reconfigure correlation of thisfield()- Since:
- 5.11
- See Also:
BaggagePropagationCustomizer
-
field
-
keyNames
Returns a possibly empty list of lower-casepropagation key names. When empty, the field is not propagated remotely.- Since:
- 5.11
-