-
- All Implemented Interfaces:
-
com.datadog.trace.api.internal.TraceSegment
public class TraceSegment.NoOp implements TraceSegment
-
-
Field Summary
Fields Modifier and Type Field Description public final static TraceSegmentINSTANCE
-
Method Summary
Modifier and Type Method Description voidsetTagTop(String key, Object value, boolean sanitize)Add a tag to the top of this {@code TraceSegment}with optional key sanitization.voidsetTagCurrent(String key, Object value, boolean sanitize)Add a tag to the current span in this {@code TraceSegment}.voidsetDataTop(String key, Object value)Add data to the top of this {@code TraceSegment}.voideffectivelyBlocked()Mark the request as effectively blocked, by setting the tag appsec. voidsetDataCurrent(String key, Object value)Add data to the current span in this {@code TraceSegment}.-
-
Method Detail
-
setTagTop
void setTagTop(String key, Object value, boolean sanitize)
Add a tag to the top of this
{@code TraceSegment}with optional key sanitization.- Parameters:
key- key of the tagvalue- value of the tagsanitize- indicates is key need to be sanitized
-
setTagCurrent
void setTagCurrent(String key, Object value, boolean sanitize)
Add a tag to the current span in this
{@code TraceSegment}. with optional key sanitization.- Parameters:
key- key of the tagvalue- value of the tagsanitize- indicates is key need to be sanitized
-
setDataTop
void setDataTop(String key, Object value)
Add data to the top of this
{@code TraceSegment}. The{@code toString}representation of the{@code value}must be valid top level JSON, i.e. an{@code Object}or an{@code Array}.- Parameters:
key- key of the datavalue- value of the data
-
effectivelyBlocked
void effectivelyBlocked()
Mark the request as effectively blocked, by setting the tag appsec.blocked
-
setDataCurrent
void setDataCurrent(String key, Object value)
Add data to the current span in this
{@code TraceSegment}. The{@code toString}representationof the{@code value}must be valid top level JSON, i.e. an{@code Object}or an{@code Array}.- Parameters:
key- key of the datavalue- value of the data
-
-
-
-