Package brave.propagation
Class ExtraFieldPropagation.FactoryBuilder
java.lang.Object
brave.propagation.ExtraFieldPropagation.FactoryBuilder
- Enclosing class:
- ExtraFieldPropagation<K>
public static final class ExtraFieldPropagation.FactoryBuilder extends Object
-
Method Summary
Modifier and Type Method Description ExtraFieldPropagation.FactoryBuilderaddField(String fieldName)Adds a field that is referenced the same in-process as it is on the wire.ExtraFieldPropagation.FactoryBuilderaddPrefixedFields(String prefix, Collection<String> fieldNames)Adds a prefix when fields are extracted or injected from headers.ExtraFieldPropagation.FactoryBuilderaddRedactedField(String fieldName)Same asaddField(java.lang.String)except that this field is redacted from downstream propagation.ExtraFieldPropagation.Factorybuild()
-
Method Details
-
addRedactedField
Same asaddField(java.lang.String)except that this field is redacted from downstream propagation. -
addField
Adds a field that is referenced the same in-process as it is on the wire. For example, the name "x-vcap-request-id" would be set as-is including the prefix.Note:
fieldNamewill be implicitly lower-cased. -
addPrefixedFields
public ExtraFieldPropagation.FactoryBuilder addPrefixedFields(String prefix, Collection<String> fieldNames)Adds a prefix when fields are extracted or injected from headers. For example, if the prefix is "baggage-", the field "country-code" would end up as "baggage-country-code" on the wire.Note: any
fieldNameswill be implicitly lower-cased. -
build
-