Class ThresholdRequestSpan

java.lang.Object
com.couchbase.client.core.cnc.tracing.ThresholdRequestSpan
All Implemented Interfaces:
RequestSpan

public class ThresholdRequestSpan
extends Object
implements RequestSpan
  • Method Details

    • setAttribute

      public void setAttribute​(String key, String value)
      Description copied from interface: RequestSpan
      Sets an attribute on the span, which is translated to the corresponding implementation specific tag.

      Note that, depending on the implementation, attributes might be ignored.

      Specified by:
      setAttribute in interface RequestSpan
      Parameters:
      key - the key of the attribute.
      value - the value of the attribute.
    • addEvent

      public void addEvent​(String name, Instant timestamp)
      Description copied from interface: RequestSpan
      Sets an event on the span, which is translated to the corresponding implementation specific event.

      Note that, depending on the implementation, events might be ignored.

      Specified by:
      addEvent in interface RequestSpan
      Parameters:
      name - the name of the event
      timestamp - the timestamp when it happened.
    • requestContext

      public void requestContext​(RequestContext requestContext)
      Description copied from interface: RequestSpan
      Allows to set a request context to the request span.
      Specified by:
      requestContext in interface RequestSpan
      Parameters:
      requestContext - the request context, if present.
    • end

      public void end()
      Description copied from interface: RequestSpan
      Completes this span.
      Specified by:
      end in interface RequestSpan