Span class abstract

A representation of a single operation within a trace.

Examples of a span might include remote procedure calls or in-process function calls to sub-components. A trace has a single, top-level "root" span that in turn may haze zero or more child Spans, which in turn may have children.

Warning: methods may be added to this interface in minor releases.

Implementers

Constructors

Span()

Properties

hashCode int
The hash code for this object.
no setterinherited
parentSpanId SpanId
The parent span id.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spanContext SpanContext
The context associated with this span.
no setter

Methods

addEvent(String name, {Int64? timestamp, List<Attribute> attributes}) → void
Records a api.SpanEvent.
end({Int64 endTime}) → void
Marks the end of this span's execution.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordException(dynamic exception, {bool escaped, StackTrace stackTrace, List<Attribute> attributes}) → void
Record metadata about an exception occurring during this span.
setAttribute(Attribute attribute) → void
Sets a single attribute.
setAttributes(List<Attribute> attributes) → void
Sets multiple attributes.
setName(String name) → void
Sets the name of the Span.
setStatus(StatusCode status, [String description]) → void
Sets the status to the Span.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited