SentryTransactionContext class

Inheritance

Constructors

SentryTransactionContext(String name, String operation, {String? description, SentryId? traceId, SpanId? spanId, SpanId? parentSpanId, SentryTransactionNameSource? transactionNameSource, SentryTracesSamplingDecision? samplingDecision, SentryTracesSamplingDecision? parentSamplingDecision, String? origin})
SentryTransactionContext.fromSentryTrace(String name, String operation, SentryTraceHeader traceHeader, {SentryTransactionNameSource? transactionNameSource, SentryBaggage? baggage, SentryOptions? options})
Creates a SentryTransactionContext from an incoming traceHeader and optional baggage.
factory

Properties

description ↔ String?
Longer description of the span's operation, which uniquely identifies the span but is consistent across instances of the span.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
name ↔ String
getter/setter pair
operation ↔ String
Short code identifying the type of operation the span is measuring
getter/setter pairinherited
origin ↔ String?
The origin of the span indicates what created the span.
getter/setter pairinherited
parentSamplingDecision ↔ SentryTracesSamplingDecision?
getter/setter pair
parentSpanId ↔ SpanId?
Id of a parent span
getter/setter pairinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
samplingDecision ↔ SentryTracesSamplingDecision?
getter/setter pair
spanId ↔ SpanId
Span id
getter/setter pairinherited
traceId ↔ SentryId
Determines which trace the Span belongs to
getter/setter pairinherited
transactionNameSource ↔ SentryTransactionNameSource?
getter/setter pair

Methods

copyWith({String? name, String? operation, String? description, SentryTracesSamplingDecision? parentSamplingDecision, SentryId? traceId, SpanId? spanId, SpanId? parentSpanId, SentryTransactionNameSource? transactionNameSource, SentryTracesSamplingDecision? samplingDecision, String? origin}) → SentryTransactionContext
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Item encoded as JSON
inherited
toString() → String
A string representation of this object.
inherited

Operators

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