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.FactoryBuilder
addField(String fieldName)
Adds a field that is referenced the same in-process as it is on the wire.ExtraFieldPropagation.FactoryBuilder
addPrefixedFields(String prefix, Collection<String> fieldNames)
Adds a prefix when fields are extracted or injected from headers.ExtraFieldPropagation.FactoryBuilder
addRedactedField(String fieldName)
Same asaddField(java.lang.String)
except that this field is redacted from downstream propagation.ExtraFieldPropagation.Factory
build()
-
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:
fieldName
will 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
fieldNames
will be implicitly lower-cased. -
build
-