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 |
effectivelyBlocked()
Mark the request as effectively blocked, by setting the tag appsec.blocked
|
Object |
getDataCurrent(String key)
Gets the value of the tag from the current span in this
TraceSegment. |
Object |
getDataTop(String key)
Gets the value of the tag from the top of this
TraceSegment. |
Object |
getTagCurrent(String key,
boolean sanitize)
Get the tag value from the current span in this
TraceSegment. |
Object |
getTagTop(String key,
boolean sanitize)
Get the tag value from the top of this
TraceSegment with optional key sanitization. |
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 |
setMetaStructCurrent(String key,
Object value)
Add a field to the current span meta_struct in this
TraceSegment. |
void |
setMetaStructTop(String key,
Object value)
Add a field to the meta_struct of 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, waitgetTagCurrent, getTagTop, setTagCurrent, setTagToppublic static final TraceSegment INSTANCE
public void setTagTop(String key, Object value, boolean sanitize)
TraceSegmentTraceSegment with optional key sanitization.setTagTop in interface TraceSegmentkey - key of the tagvalue - value of the tagsanitize - indicates is key need to be sanitizedpublic void setTagCurrent(String key, Object value, boolean sanitize)
TraceSegmentTraceSegment. with optional key sanitization.setTagCurrent in interface TraceSegmentkey - key of the tagvalue - value of the tagsanitize - indicates is key need to be sanitizedpublic Object getTagTop(String key, boolean sanitize)
TraceSegmentTraceSegment with optional key sanitization.getTagTop in interface TraceSegmentkey - key of the tagsanitize - indicates is key need to be sanitizedpublic Object getTagCurrent(String key, boolean sanitize)
TraceSegmentTraceSegment. with optional key
sanitization.getTagCurrent in interface TraceSegmentkey - key of the tagsanitize - indicates is key need to be sanitizedpublic void setDataTop(String key, Object value)
TraceSegmentTraceSegment. The toString representation of the
value must be valid top level JSON, i.e. an Object or an Array.setDataTop in interface TraceSegmentkey - key of the datavalue - value of the datapublic Object getDataTop(String key)
TraceSegmentTraceSegment.getDataTop in interface TraceSegmentkey - key of the datapublic void effectivelyBlocked()
TraceSegmenteffectivelyBlocked in interface TraceSegmentpublic void setDataCurrent(String key, Object value)
TraceSegmentTraceSegment. The toString representation
of the value must be valid top level JSON, i.e. an Object or an Array.setDataCurrent in interface TraceSegmentkey - key of the datavalue - value of the datapublic Object getDataCurrent(String key)
TraceSegmentTraceSegment.getDataCurrent in interface TraceSegmentkey - key of the datapublic void setMetaStructTop(String key, Object value)
TraceSegmentTraceSegment.setMetaStructTop in interface TraceSegmentkey - field namevalue - value of the data(String, Object)public void setMetaStructCurrent(String key, Object value)
TraceSegmentTraceSegment.setMetaStructCurrent in interface TraceSegmentkey - field namevalue - value of the datadatadog.trace.common.writer.ddagent.TraceMapperV0_4.MetaStructWriter,
datadog.trace.core.CoreSpan#setMetaStruct(String, Object)