public class BaggageTextMapPropagator extends Object implements io.opentelemetry.context.propagation.TextMapPropagator
TextMapPropagator that adds compatible baggage entries (name of the field means
an HTTP header entry). If existing baggage is present in the context, this will append
entries to the existing one. Preferably this TextMapPropagator should be added
as last.| Constructor and Description |
|---|
BaggageTextMapPropagator(List<String> remoteFields,
org.springframework.cloud.sleuth.BaggageManager baggageManager)
Creates a new instance of
BaggageTextMapPropagator. |
| Modifier and Type | Method and Description |
|---|---|
<C> io.opentelemetry.context.Context |
extract(io.opentelemetry.context.Context context,
C c,
io.opentelemetry.context.propagation.TextMapGetter<C> getter) |
List<String> |
fields() |
<C> void |
inject(io.opentelemetry.context.Context context,
C c,
io.opentelemetry.context.propagation.TextMapSetter<C> setter) |
public BaggageTextMapPropagator(List<String> remoteFields, org.springframework.cloud.sleuth.BaggageManager baggageManager)
BaggageTextMapPropagator.remoteFields - remote fieldsbaggageManager - baggage managerpublic List<String> fields()
fields in interface io.opentelemetry.context.propagation.TextMapPropagatorpublic <C> void inject(io.opentelemetry.context.Context context,
C c,
io.opentelemetry.context.propagation.TextMapSetter<C> setter)
inject in interface io.opentelemetry.context.propagation.TextMapPropagatorpublic <C> io.opentelemetry.context.Context extract(io.opentelemetry.context.Context context,
C c,
io.opentelemetry.context.propagation.TextMapGetter<C> getter)
extract in interface io.opentelemetry.context.propagation.TextMapPropagatorCopyright © 2023 Pivotal Software, Inc.. All rights reserved.