SentryTransactionContext class

Inheritance
Annotations
  • @immutable

Constructors

SentryTransactionContext(String name, String operation, {String? description, SentryTracesSamplingDecision? parentSamplingDecision, SentryId? traceId, SpanId? spanId, SpanId? parentSpanId, SentryTransactionNameSource? transactionNameSource, SentryTracesSamplingDecision? samplingDecision, String? origin})
SentryTransactionContext.fromSentryTrace(String name, String operation, SentryTraceHeader traceHeader, {SentryTransactionNameSource? transactionNameSource, SentryBaggage? 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.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
name String
final
operation String
Short code identifying the type of operation the span is measuring
finalinherited
origin String?
The origin of the span indicates what created the span.
finalinherited
parentSamplingDecision SentryTracesSamplingDecision?
final
parentSpanId SpanId?
Id of a parent span
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
samplingDecision SentryTracesSamplingDecision?
final
spanId SpanId
Span id
latefinalinherited
traceId SentryId
Determines which trace the Span belongs to
latefinalinherited
transactionNameSource SentryTransactionNameSource?
final

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
toTraceContext({bool? sampled, SpanStatus? status, Map<String, dynamic>? data}) SentryTraceContext
inherited

Operators

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