Package brave.propagation
Enum B3Propagation.Format
- All Implemented Interfaces:
brave.internal.propagation.InjectorFactory.InjectorFunction
,Serializable
,Comparable<B3Propagation.Format>
,java.lang.constant.Constable
- Enclosing class:
- B3Propagation<K>
public static enum B3Propagation.Format extends Enum<B3Propagation.Format> implements brave.internal.propagation.InjectorFactory.InjectorFunction
Describes the formats used to inject headers.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description MULTI
The trace context is encoded with a several fields prefixed with "x-b3-".SINGLE
The trace context is encoded withB3SingleFormat.writeB3SingleFormat(TraceContext)
.SINGLE_NO_PARENT
The trace context is encoded withB3SingleFormat.writeB3SingleFormatWithoutParentId(TraceContext)
. -
Field Summary
-
Method Summary
Modifier and Type Method Description static B3Propagation.Format
valueOf(String name)
Returns the enum constant of this type with the specified name.static B3Propagation.Format[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MULTI
The trace context is encoded with a several fields prefixed with "x-b3-". -
SINGLE
The trace context is encoded withB3SingleFormat.writeB3SingleFormat(TraceContext)
. -
SINGLE_NO_PARENT
The trace context is encoded withB3SingleFormat.writeB3SingleFormatWithoutParentId(TraceContext)
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-