Class TraceSegment.NoOp

java.lang.Object
datadog.trace.api.internal.TraceSegment.NoOp
All Implemented Interfaces:
TraceSegment
Enclosing interface:
TraceSegment

public static class TraceSegment.NoOp extends Object implements TraceSegment
  • Field Details

  • Method Details

    • setTagTop

      public void setTagTop(String key, Object value, boolean sanitize)
      Description copied from interface: TraceSegment
      Add a tag to the top of this TraceSegment with optional key sanitization.
      Specified by:
      setTagTop in interface TraceSegment
      Parameters:
      key - key of the tag
      value - value of the tag
      sanitize - indicates is key need to be sanitized
    • setTagCurrent

      public void setTagCurrent(String key, Object value, boolean sanitize)
      Description copied from interface: TraceSegment
      Add a tag to the current span in this TraceSegment. with optional key sanitization.
      Specified by:
      setTagCurrent in interface TraceSegment
      Parameters:
      key - key of the tag
      value - value of the tag
      sanitize - indicates is key need to be sanitized
    • getTagTop

      public Object getTagTop(String key, boolean sanitize)
      Description copied from interface: TraceSegment
      Get the tag value from the top of this TraceSegment with optional key sanitization.
      Specified by:
      getTagTop in interface TraceSegment
      Parameters:
      key - key of the tag
      sanitize - indicates is key need to be sanitized
    • getTagCurrent

      public Object getTagCurrent(String key, boolean sanitize)
      Description copied from interface: TraceSegment
      Get the tag value from the current span in this TraceSegment. with optional key sanitization.
      Specified by:
      getTagCurrent in interface TraceSegment
      Parameters:
      key - key of the tag
      sanitize - indicates is key need to be sanitized
    • setDataTop

      public void setDataTop(String key, Object value)
      Description copied from interface: TraceSegment
      Add data to the top of this TraceSegment. The toString representation of the value must be valid top level JSON, i.e. an Object or an Array.
      Specified by:
      setDataTop in interface TraceSegment
      Parameters:
      key - key of the data
      value - value of the data
    • getDataTop

      public Object getDataTop(String key)
      Description copied from interface: TraceSegment
      Gets the value of the tag from the top of this TraceSegment.
      Specified by:
      getDataTop in interface TraceSegment
      Parameters:
      key - key of the data
      Returns:
      value of the data
    • effectivelyBlocked

      public void effectivelyBlocked()
      Description copied from interface: TraceSegment
      Mark the request as effectively blocked, by setting the tag appsec.blocked
      Specified by:
      effectivelyBlocked in interface TraceSegment
    • setDataCurrent

      public void setDataCurrent(String key, Object value)
      Description copied from interface: TraceSegment
      Add data to the current span in this TraceSegment. The toString representation of the value must be valid top level JSON, i.e. an Object or an Array.
      Specified by:
      setDataCurrent in interface TraceSegment
      Parameters:
      key - key of the data
      value - value of the data
    • getDataCurrent

      public Object getDataCurrent(String key)
      Description copied from interface: TraceSegment
      Gets the value of the tag from the current span in this TraceSegment.
      Specified by:
      getDataCurrent in interface TraceSegment
      Parameters:
      key - key of the data
      Returns:
      value of the data
    • setMetaStructTop

      public void setMetaStructTop(String key, Object value)
      Description copied from interface: TraceSegment
      Add a field to the meta_struct of the top of this TraceSegment.
      Specified by:
      setMetaStructTop in interface TraceSegment
      Parameters:
      key - field name
      value - value of the data
      See Also:
    • setMetaStructCurrent

      public void setMetaStructCurrent(String key, Object value)
      Description copied from interface: TraceSegment
      Add a field to the current span meta_struct in this TraceSegment.
      Specified by:
      setMetaStructCurrent in interface TraceSegment
      Parameters:
      key - field name
      value - value of the data
      See Also:
      • invalid reference
        datadog.trace.common.writer.ddagent.TraceMapperV0_4.MetaStructWriter
      • invalid reference
        datadog.trace.core.CoreSpan#setMetaStruct(String, Object)