ReadWriteSpan class abstract

Implemented types

Constructors

ReadWriteSpan()

Properties

attributes Attributes
no setterinherited
droppedEventsCount int
no setterinherited
endTime → Int64?
The time when the span was closed, or null if still open.
no setterinherited
events List<SpanEvent>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
instrumentationScope InstrumentationScope
The instrumentation library for the span.
no setterinherited
kind SpanKind
The kind of the span.
no setterinherited
no setterinherited
name String
The name of the span.
no setterinherited
parentSpanId SpanId
The parent span id.
no setterinherited
resource Resource
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spanContext SpanContext
The context associated with this span.
no setterinherited
startTime → Int64
The time when the span was started.
no setterinherited
status SpanStatus
The status of the span.
no setterinherited

Methods

addEvent(String name, {Int64? timestamp, List<Attribute> attributes}) → void
Records a api.SpanEvent.
inherited
end({Int64 endTime}) → void
Marks the end of this span's execution.
inherited
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.
inherited
setAttribute(Attribute attribute) → void
Sets a single attribute.
inherited
setAttributes(List<Attribute> attributes) → void
Sets multiple attributes.
inherited
setName(String name) → void
Sets the name of the Span.
inherited
setStatus(StatusCode status, [String description]) → void
Sets the status to the Span.
inherited
toString() String
A string representation of this object.
inherited

Operators

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