Class ThresholdLogSpan

java.lang.Object
com.couchbase.client.core.tracing.ThresholdLogSpan
All Implemented Interfaces:
io.opentracing.Span, Comparable<ThresholdLogSpan>

public class ThresholdLogSpan extends Object implements io.opentracing.Span, Comparable<ThresholdLogSpan>
  • Method Details

    • context

      public ThresholdLogSpanContext context()
      Specified by:
      context in interface io.opentracing.Span
    • setTag

      public ThresholdLogSpan setTag(String key, String value)
      Specified by:
      setTag in interface io.opentracing.Span
    • setTag

      public ThresholdLogSpan setTag(String key, boolean value)
      Specified by:
      setTag in interface io.opentracing.Span
    • setTag

      public ThresholdLogSpan setTag(String key, Number value)
      Specified by:
      setTag in interface io.opentracing.Span
    • log

      public ThresholdLogSpan log(Map<String,?> fields)
      Specified by:
      log in interface io.opentracing.Span
    • log

      public ThresholdLogSpan log(String event)
      Specified by:
      log in interface io.opentracing.Span
    • log

      public ThresholdLogSpan log(long timestampMicroseconds, Map<String,?> fields)
      Specified by:
      log in interface io.opentracing.Span
    • log

      public ThresholdLogSpan log(long timestampMicroseconds, String event)
      Specified by:
      log in interface io.opentracing.Span
    • setBaggageItem

      public ThresholdLogSpan setBaggageItem(String key, String value)
      Specified by:
      setBaggageItem in interface io.opentracing.Span
    • getBaggageItem

      public String getBaggageItem(String key)
      Specified by:
      getBaggageItem in interface io.opentracing.Span
    • setOperationName

      public ThresholdLogSpan setOperationName(String operationName)
      Specified by:
      setOperationName in interface io.opentracing.Span
    • compareTo

      public int compareTo(ThresholdLogSpan o)
      Specified by:
      compareTo in interface Comparable<ThresholdLogSpan>
    • finish

      public void finish()
      Specified by:
      finish in interface io.opentracing.Span
    • durationMicros

      public long durationMicros()
      Returns the relative duration in microseconds.
    • operationName

      public String operationName()
      Returns the operation name.
    • tags

      public Map<String,Object> tags()
      Returns the set tags.
    • tag

      public Object tag(String key)
      Returns a tag if set, null otherwise.
      Parameters:
      key - the key to check.
      Returns:
      returns the value or null if not set.
    • request

      public CouchbaseRequest request()
    • request

      public void request(CouchbaseRequest request)
    • finish

      public void finish(long finishMicros)
      Specified by:
      finish in interface io.opentracing.Span
    • toString

      public String toString()
      Overrides:
      toString in class Object