public static class TraceSegment.NoOp extends Object implements TraceSegment
TraceSegment.NoOp
Modifier and Type | Field and Description |
---|---|
static TraceSegment |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
void |
setDataCurrent(String key,
Object value)
Add data to the current span in this
TraceSegment . |
void |
setDataTop(String key,
Object value)
Add data to the top of this
TraceSegment . |
void |
setTagCurrent(String key,
Object value,
boolean sanitize)
Add a tag to the current span in this
TraceSegment . |
void |
setTagTop(String key,
Object value,
boolean sanitize)
Add a tag to the top of this
TraceSegment with optional key sanitization. |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setTagCurrent, setTagTop
public static final TraceSegment INSTANCE
public void setTagTop(String key, Object value, boolean sanitize)
TraceSegment
TraceSegment
with optional key sanitization.setTagTop
in interface TraceSegment
key
- key of the tagvalue
- value of the tagsanitize
- indicates is key need to be sanitizedpublic void setTagCurrent(String key, Object value, boolean sanitize)
TraceSegment
TraceSegment
. with optional key sanitization.setTagCurrent
in interface TraceSegment
key
- key of the tagvalue
- value of the tagsanitize
- indicates is key need to be sanitizedpublic void setDataTop(String key, Object value)
TraceSegment
TraceSegment
. The toString
representation of the
value
must be valid top level JSON, i.e. an Object
or an Array
.setDataTop
in interface TraceSegment
key
- key of the datavalue
- value of the datapublic void setDataCurrent(String key, Object value)
TraceSegment
TraceSegment
. The toString
representation
of the value
must be valid top level JSON, i.e. an Object
or an Array
.setDataCurrent
in interface TraceSegment
key
- key of the datavalue
- value of the data