ThreadLocalAccessor used to propagate baggage via BaggageToPropagate.
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Map | |
| public static final String | KEY
Key under which Micrometer Tracing Baggage accessor is being registered. |
| private static final InternalLogger | |
| private final ObservationRegistry | |
| private final Tracer |
| Access | Constructor and Description |
|---|---|
| public | ObservationAwareBaggageThreadLocalAccessor(ObservationRegistry
observation registry observationRegistry, Tracer tracer tracer)Creates a new instance of this class. |
| baggageInScope | back to summary |
|---|---|
| pack-priv final Map<Thread, ObservationAwareBaggageThreadLocalAccessor. | |
| KEY | back to summary |
|---|---|
| public static final String KEY Key under which Micrometer Tracing Baggage accessor is being registered. | |
| log | back to summary |
|---|---|
| private static final InternalLogger log | |
| registry | back to summary |
|---|---|
| private final ObservationRegistry registry | |
| tracer | back to summary |
|---|---|
| private final Tracer tracer | |
| ObservationAwareBaggageThreadLocalAccessor | back to summary |
|---|---|
| public ObservationAwareBaggageThreadLocalAccessor(ObservationRegistry observationRegistry, Tracer tracer) Creates a new instance of this class.
| |
| baggageScopeClosingScope | back to summary |
|---|---|
private static ObservationAwareBaggageThreadLocalAccessor.
| |
| closeCurrentScope | back to summary |
|---|---|
| private void closeCurrentScope() | |
| getCurrentSpan | back to summary |
|---|---|
| private Span getCurrentSpan(Observation currentObservation) | |
| getValue | back to summary |
|---|---|
| public BaggageToPropagate getValue() Implements io. Doc from io. Return the current This method is called in two scenarios:
| |
| key | back to summary |
|---|---|
| public Object key() Implements io. Doc from io. The key to associate with the ThreadLocal value when saved within a
| |
| openScopeForEachBaggageEntry | back to summary |
|---|---|
| private ObservationAwareBaggageThreadLocalAccessor. | |
| reset | back to summary |
|---|---|
| public void reset() Overrides default io. Doc from io. Deprecated
Remove the
| |
| restore | back to summary |
|---|---|
| public void restore() Overrides default io. Doc from io. Called instead of
| |
| restore | back to summary |
|---|---|
| public void restore(BaggageToPropagate value) Overrides default io. Doc from io. Restore the
| |
| scopeClosingBaggageAndScope | back to summary |
|---|---|
| private static ObservationAwareBaggageThreadLocalAccessor. | |
| scopeRestoringBaggageAndScope | back to summary |
|---|---|
| private ObservationAwareBaggageThreadLocalAccessor. | |
| setValue | back to summary |
|---|---|
| public void setValue(BaggageToPropagate value) Implements io. Doc from io. Set the
| |
| setValue | back to summary |
|---|---|
| public void setValue() Overrides default io. Doc from io. Called instead of
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Consumer | |
| private final Map. | |
| private static final InternalLogger |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Object
the input argument o)Implements java. |
| public ObservationAwareBaggageThreadLocalAccessor. | andThen(Consumer<? super Object>
the operation to perform after this operation after)Overrides default java. Consumer that performs, in sequence, this
operation followed by the after operation.
|
| public String |
| consumer | back to summary |
|---|---|
| private final Consumer<Object> consumer | |
| entry | back to summary |
|---|---|
| private final Map. | |
| log | back to summary |
|---|---|
| private static final InternalLogger log | |
| BaggageAndScope | back to summary |
|---|---|
| pack-priv BaggageAndScope(Consumer<Object> consumer, Map. | |
| BaggageAndScope | back to summary |
|---|---|
| pack-priv BaggageAndScope(Consumer<Object> consumer) | |
| accept | back to summary |
|---|---|
| public void accept(Object o) Implements java. Doc from java. Performs this operation on the given argument. | |
| andThen | back to summary |
|---|---|
| public ObservationAwareBaggageThreadLocalAccessor. Overrides default java. Doc from java. Returns a composed
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |