SentryTraceContext class

Annotations
  • @immutable

Constructors

SentryTraceContext({SentryId? traceId, SpanId? spanId, SpanId? parentSpanId, bool? sampled, required String operation, String? description, SpanStatus? status, String? origin, Map<String, dynamic>? unknown, SentryId? replayId, Map<String, dynamic>? data})
SentryTraceContext.fromJson(Map<String, dynamic> data)
factory
SentryTraceContext.fromPropagationContext(PropagationContext propagationContext)
factory

Properties

data Map<String, dynamic>?
final
description String?
Longer description of the span's operation, which uniquely identifies the span but is consistent across instances of the span.
final
hashCode int
The hash code for this object.
no setterinherited
operation String
Short code identifying the type of operation the span is measuring
final
origin String?
The origin of the span indicates what created the span.
final
parentSpanId SpanId?
Id of a parent span
final
replayId SentryId?
Replay associated with this trace.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sampled bool?
Whether the span is sampled or not
final
spanId SpanId
Span id
latefinal
status SpanStatus?
The Span status
final
traceId SentryId
Determines which trace the Span belongs to
latefinal
unknown Map<String, dynamic>?
final

Methods

clone() SentryTraceContext
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Item encoded as JSON
toString() String
A string representation of this object.
inherited

Operators

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

Constants

type → const String