Module brave

Class ExtraFieldPropagation.FactoryBuilder

  • Enclosing class:
    ExtraFieldPropagation<K>

    public static final class ExtraFieldPropagation.FactoryBuilder
    extends java.lang.Object
    • Method Detail

      • addField

        public ExtraFieldPropagation.FactoryBuilder addField​(java.lang.String fieldName)
        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​(java.lang.String prefix,
                                                                      java.util.Collection<java.lang.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.