public class TextMapAdapter extends TextMapExtractAdapter implements TextMap
map
Constructor and Description |
---|
TextMapAdapter(Map<String,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.
|
iterator
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterator
forEach, spliterator
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.