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. |
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, waitsetTagCurrent, 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 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 data