public class TextMapInjectAdapter extends Object implements TextMapInject
Modifier and Type | Field and Description |
---|---|
protected Map<String,? super String> |
map |
Constructor and Description |
---|
TextMapInjectAdapter(Map<String,? super String> map) |
Modifier and Type | Method and Description |
---|---|
void |
put(String key,
String value)
Puts a key:value pair into the TextMapWriter's backing store.
|
public void put(String key, String value)
TextMapInject
put
in interface TextMapInject
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.