Package datadog.trace.api.internal
Class TraceSegment.NoOp
java.lang.Object
datadog.trace.api.internal.TraceSegment.NoOp
- All Implemented Interfaces:
TraceSegment
- Enclosing interface:
TraceSegment
-
Nested Class Summary
Nested classes/interfaces inherited from interface datadog.trace.api.internal.TraceSegment
TraceSegment.NoOp -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidMark the request as effectively blocked, by setting the tag appsec.blockedgetDataCurrent(String key) Gets the value of the tag from the current span in thisTraceSegment.getDataTop(String key) Gets the value of the tag from the top of thisTraceSegment.getTagCurrent(String key, boolean sanitize) Get the tag value from the current span in thisTraceSegment.Get the tag value from the top of thisTraceSegmentwith optional key sanitization.voidsetDataCurrent(String key, Object value) Add data to the current span in thisTraceSegment.voidsetDataTop(String key, Object value) Add data to the top of thisTraceSegment.voidsetMetaStructCurrent(String key, Object value) Add a field to the current span meta_struct in thisTraceSegment.voidsetMetaStructTop(String key, Object value) Add a field to the meta_struct of the top of thisTraceSegment.voidsetTagCurrent(String key, Object value, boolean sanitize) Add a tag to the current span in thisTraceSegment.voidAdd a tag to the top of thisTraceSegmentwith optional key sanitization.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface datadog.trace.api.internal.TraceSegment
getTagCurrent, getTagTop, setTagCurrent, setTagTop
-
Field Details
-
INSTANCE
-
-
Method Details
-
setTagTop
Description copied from interface:TraceSegmentAdd a tag to the top of thisTraceSegmentwith optional key sanitization.- Specified by:
setTagTopin interfaceTraceSegment- Parameters:
key- key of the tagvalue- value of the tagsanitize- indicates is key need to be sanitized
-
setTagCurrent
Description copied from interface:TraceSegmentAdd a tag to the current span in thisTraceSegment. with optional key sanitization.- Specified by:
setTagCurrentin interfaceTraceSegment- Parameters:
key- key of the tagvalue- value of the tagsanitize- indicates is key need to be sanitized
-
getTagTop
Description copied from interface:TraceSegmentGet the tag value from the top of thisTraceSegmentwith optional key sanitization.- Specified by:
getTagTopin interfaceTraceSegment- Parameters:
key- key of the tagsanitize- indicates is key need to be sanitized
-
getTagCurrent
Description copied from interface:TraceSegmentGet the tag value from the current span in thisTraceSegment. with optional key sanitization.- Specified by:
getTagCurrentin interfaceTraceSegment- Parameters:
key- key of the tagsanitize- indicates is key need to be sanitized
-
setDataTop
Description copied from interface:TraceSegmentAdd data to the top of thisTraceSegment. ThetoStringrepresentation of thevaluemust be valid top level JSON, i.e. anObjector anArray.- Specified by:
setDataTopin interfaceTraceSegment- Parameters:
key- key of the datavalue- value of the data
-
getDataTop
Description copied from interface:TraceSegmentGets the value of the tag from the top of thisTraceSegment.- Specified by:
getDataTopin interfaceTraceSegment- Parameters:
key- key of the data- Returns:
- value of the data
-
effectivelyBlocked
public void effectivelyBlocked()Description copied from interface:TraceSegmentMark the request as effectively blocked, by setting the tag appsec.blocked- Specified by:
effectivelyBlockedin interfaceTraceSegment
-
setDataCurrent
Description copied from interface:TraceSegmentAdd data to the current span in thisTraceSegment. ThetoStringrepresentation of thevaluemust be valid top level JSON, i.e. anObjector anArray.- Specified by:
setDataCurrentin interfaceTraceSegment- Parameters:
key- key of the datavalue- value of the data
-
getDataCurrent
Description copied from interface:TraceSegmentGets the value of the tag from the current span in thisTraceSegment.- Specified by:
getDataCurrentin interfaceTraceSegment- Parameters:
key- key of the data- Returns:
- value of the data
-
setMetaStructTop
Description copied from interface:TraceSegmentAdd a field to the meta_struct of the top of thisTraceSegment.- Specified by:
setMetaStructTopin interfaceTraceSegment- Parameters:
key- field namevalue- value of the data- See Also:
-
setMetaStructCurrent
Description copied from interface:TraceSegmentAdd a field to the current span meta_struct in thisTraceSegment.- Specified by:
setMetaStructCurrentin interfaceTraceSegment- Parameters:
key- field namevalue- value of the data- See Also:
-