SpanId class

A span identifier - an 8-byte array with an ID in a base-16 hex format. Follows W3C Trace Context specification.

Properties

bytes Uint8List
Returns a copy of the raw bytes of this SpanId.
no setter
hashCode int
The hash code for this object.
no setteroverride
hexString String
Returns the lowercase base16 (hex) representation of the SpanId
no setter
isValid bool
Returns true if this SpanId is valid (not zero)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Properties

invalidSpanId SpanId
A SpanId instance representing an invalid span ID (all zeros).
final
invalidSpanIdBytes Uint8List
A span ID consisting of all zeros, representing an invalid span ID.
final

Constants

spanIdLength → const int
The number of bytes in a span ID. Per the OpenTelemetry specification, span IDs must be 8 bytes (64 bits).