copyWith method
SentryTransactionContext
copyWith({
- String? name,
- String? operation,
- String? description,
- SentryTracesSamplingDecision? parentSamplingDecision,
- SentryId? traceId,
- SpanId? spanId,
- SpanId? parentSpanId,
- SentryTransactionNameSource? transactionNameSource,
- SentryTracesSamplingDecision? samplingDecision,
- String? origin,
Implementation
SentryTransactionContext copyWith({
String? name,
String? operation,
String? description,
SentryTracesSamplingDecision? parentSamplingDecision,
SentryId? traceId,
SpanId? spanId,
SpanId? parentSpanId,
SentryTransactionNameSource? transactionNameSource,
SentryTracesSamplingDecision? samplingDecision,
String? origin,
}) =>
SentryTransactionContext(
name ?? this.name,
operation ?? this.operation,
description: description ?? this.description,
parentSamplingDecision:
parentSamplingDecision ?? this.parentSamplingDecision,
traceId: traceId ?? this.traceId,
spanId: spanId ?? this.spanId,
parentSpanId: parentSpanId ?? this.parentSpanId,
transactionNameSource:
transactionNameSource ?? this.transactionNameSource,
samplingDecision: samplingDecision ?? this.samplingDecision,
origin: origin ?? this.origin,
);