public interface TextMapInject
TextMapInject
is a built-in carrier for Tracer.inject(io.opentracing.SpanContext, io.opentracing.propagation.Format<C>, C)
only.
TextMapInject
implementations allows Tracers to read key:value String
pairs from arbitrary underlying sources of data.Modifier and Type | Method and Description |
---|---|
void |
put(String key,
String value)
Puts a key:value pair into the TextMapWriter's backing store.
|
void put(String key, String value)
key
- a String, possibly with constraints dictated by the particular Format this TextMap is paired withvalue
- a String, possibly with constraints dictated by the particular Format this TextMap is paired withTracer.inject(io.opentracing.SpanContext, Format, Object)
,
Format.Builtin.TEXT_MAP
,
Format.Builtin.HTTP_HEADERS
Copyright © 2016–2019 OpenTracing. All rights reserved.