Package 

Class TraceSegment.NoOp

    • Method Summary

      Modifier and Type Method Description
      void setTagTop(String key, Object value, boolean sanitize) Add a tag to the top of this {@code TraceSegment} with optional key sanitization.
      void setTagCurrent(String key, Object value, boolean sanitize) Add a tag to the current span in this {@code TraceSegment}.
      void setDataTop(String key, Object value) Add data to the top of this {@code TraceSegment}.
      void effectivelyBlocked() Mark the request as effectively blocked, by setting the tag appsec.
      void setDataCurrent(String key, Object value) Add data to the current span in this {@code TraceSegment}.
      • Methods inherited from class com.datadog.trace.api.internal.TraceSegment

        setTagCurrent, setTagTop
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 tag
        value - value of the tag
        sanitize - 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 tag
        value - value of the tag
        sanitize - 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 data
        value - 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 data
        value - value of the data