Constructor and Description |
---|
TextMapInjectAdapter(Map<String,String> map) |
Modifier and Type | Method and Description |
---|---|
Iterator<Map.Entry<String,String>> |
iterator()
Gets an iterator over arbitrary key:value pairs from the TextMapReader.
|
void |
put(String key,
String value)
Puts a key:value pair into the TextMapWriter's backing store.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Iterator<Map.Entry<String,String>> iterator()
TextMap
iterator
in interface TextMap
iterator
in interface Iterable<Map.Entry<String,String>>
Tracer.extract(Format, Object)
,
Format.Builtin.TEXT_MAP
,
Format.Builtin.HTTP_HEADERS
public void put(String key, String value)
TextMap
put
in interface TextMap
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 OpenTracing. All rights reserved.