SpanData class final
Immutable representation delivered to processors and exporters.
Constructors
-
SpanData({required String name, required SpanContext context, required String? parentSpanId, required SpanKind kind, required DateTime startTime, required DateTime endTime, required SpanStatus status, required String? statusDescription, required Resource resource, required InstrumentationScope instrumentationScope, required Map<
String, Object?> attributes, required List<SpanEvent> events, required List<SpanLink> links, int droppedAttributes = 0, int droppedEvents = 0, int droppedLinks = 0}) - Creates a instance.
Properties
-
attributes
→ Map<
String, Object?> -
The attributes.
final
- context → SpanContext
-
The context.
final
- droppedAttributes → int
-
The dropped attributes.
final
- droppedEvents → int
-
The dropped events.
final
- droppedLinks → int
-
The dropped links.
final
- duration → Duration
-
The duration.
no setter
- endTime → DateTime
-
The end time.
final
-
events
→ List<
SpanEvent> -
The events.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- instrumentationScope → InstrumentationScope
-
The instrumentation scope.
final
- kind → SpanKind
-
The kind.
final
-
links
→ List<
SpanLink> -
The links.
final
- name → String
-
The name.
final
- parentSpanId → String?
-
The parent span id.
final
- resource → Resource
-
The resource.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startTime → DateTime
-
The start time.
final
- status → SpanStatus
-
The status.
final
- statusDescription → String?
-
The status description.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited