Trace class

Represents a telemetry trace for a single operation.

Contains information about operation execution including operation name, duration, and any associated attributes.

Constructors

Trace({required String traceId, required String name, required DateTime startTime, DateTime? endTime, Map<String, String> attributes = const {}})
const

Properties

attributes Map<String, String>
Additional attributes associated with this trace.
final
endTime DateTime?
Timestamp when the operation ended.
final
hashCode int
The hash code for this object.
no setterinherited
name String
Name of the operation (e.g., "odbc.query", "odbc.prepare").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime DateTime
Timestamp when the operation started.
final
traceId String
Unique identifier for this trace.
final

Methods

copyWith({Map<String, String>? attributes, DateTime? endTime}) Trace
Returns a copy of this trace with updated attributes.
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.
inherited