Adds an event to the Span.
the name of the event.
Adds a link to the Span.
the context of the linked span.
Returns the SpanContext object associated with this Span.
the SpanContext object associated with this Span.
Marks the end of Span execution.
Call to End of a Span MUST not have any effects on child spans. Those may still be running and can be ended later.
Do not return this
. The Span generally should not be used after it
is ended so chaining is not desired in this context.
Returns the flag whether this span will be recorded.
true if this Span is active and recording information like events with the AddEvent operation and attributes using setAttributes.
Sets an attribute to the span.
the key for this attribute.
the value for this attribute.
Sets attributes to the span.
the attributes that will be added.
Sets a status to the span. If used, this will override the default Span status. Default is CanonicalCode.OK.
the Status to set.
Updates the Span name.
TODO (revision): https://github.com/open-telemetry/opentelemetry-specification/issues/119
the Span name.
Generated using TypeDoc
An interface that represents a span. A span represents a single operation within a trace. Examples of span might include remote procedure calls or a in-process function calls to sub-components. A Trace has a single, top-level "root" Span that in turn may have zero or more child Spans, which in turn may have children.