Package sonia.scm.trace
Class SpanContext
java.lang.Object
sonia.scm.trace.SpanContext
The
SpanContext represents a finished span which could be processed by an Exporter.- Since:
- 2.9.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SpanContext
public SpanContext()
-
-
Method Details
-
label
Returns the label with the given key ornull.- Parameters:
key- key of label- Returns:
- label or
null
-
duration
Calculates the duration of the span.
-