Class SpanContext

java.lang.Object
sonia.scm.trace.SpanContext

public class SpanContext extends Object
The SpanContext represents a finished span which could be processed by an Exporter.
Since:
2.9.0
  • Constructor Details

    • SpanContext

      public SpanContext()
  • Method Details

    • label

      public String label(String key)
      Returns the label with the given key or null.
      Parameters:
      key - key of label
      Returns:
      label or null
    • duration

      public Duration duration()
      Calculates the duration of the span.