MapPropagationFields, PredefinedPropagationFieldspublic abstract class PropagationFields extends Object
ExtraFactory.decorate(TraceContext).
Implementations of this type should use copy-on-write semantics to prevent changes in a child context from affecting its parent.
| Constructor | Description |
|---|---|
PropagationFields() |
| Modifier and Type | Method | Description |
|---|---|---|
static String |
get(TraceContext context,
String name,
Class<? extends PropagationFields> type) |
Returns the value of the field with the specified key or null if not available
|
abstract String |
get(String name) |
Returns the value of the field with the specified key or null if not available
|
static void |
put(TraceContext context,
String name,
String value,
Class<? extends PropagationFields> type) |
Replaces the value of the field with the specified key, ignoring if not a permitted field
|
abstract void |
put(String name,
String value) |
Replaces the value of the field with the specified key, ignoring if not a permitted field
|
abstract Map<String,String> |
toMap() |
|
String |
toString() |
public abstract String get(String name)
public abstract void put(String name, String value)
public static String get(TraceContext context, String name, Class<? extends PropagationFields> type)
public static void put(TraceContext context, String name, String value, Class<? extends PropagationFields> type)
Copyright © 2018 OpenZipkin. All rights reserved.