copyWith method

SentryTransactionContext copyWith({
  1. String? name,
  2. String? operation,
  3. String? description,
  4. SentryTracesSamplingDecision? parentSamplingDecision,
  5. SentryId? traceId,
  6. SpanId? spanId,
  7. SpanId? parentSpanId,
  8. SentryTransactionNameSource? transactionNameSource,
  9. SentryTracesSamplingDecision? samplingDecision,
  10. 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,
    );