copyWith method
SentryTransaction
copyWith({
- SentryId? eventId,
- DateTime? timestamp,
- String? platform,
- String? logger,
- String? serverName,
- String? release,
- String? dist,
- String? environment,
- Map<
String, String> ? modules, - SentryMessage? message,
- String? transaction,
- dynamic throwable,
- SentryLevel? level,
- String? culprit,
- Map<
String, String> ? tags, - @Deprecated('Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible') Map<
String, dynamic> ? extra, - List<
String> ? fingerprint, - SentryUser? user,
- Contexts? contexts,
- List<
Breadcrumb> ? breadcrumbs, - SdkVersion? sdk,
- SentryRequest? request,
- DebugMeta? debugMeta,
- List<
SentryException> ? exceptions, - List<
SentryThread> ? threads, - String? type,
- Map<
String, SentryMeasurement> ? measurements, - Map<
String, List< ? metricSummaries,MetricSummary> > - SentryTransactionInfo? transactionInfo,
override
Implementation
@override
SentryTransaction copyWith({
SentryId? eventId,
DateTime? timestamp,
String? platform,
String? logger,
String? serverName,
String? release,
String? dist,
String? environment,
Map<String, String>? modules,
SentryMessage? message,
String? transaction,
dynamic throwable,
SentryLevel? level,
String? culprit,
Map<String, String>? tags,
@Deprecated(
'Additional Data is deprecated in favor of structured [Contexts] and should be avoided when possible')
Map<String, dynamic>? extra,
List<String>? fingerprint,
SentryUser? user,
Contexts? contexts,
List<Breadcrumb>? breadcrumbs,
SdkVersion? sdk,
SentryRequest? request,
DebugMeta? debugMeta,
List<SentryException>? exceptions,
List<SentryThread>? threads,
String? type,
Map<String, SentryMeasurement>? measurements,
Map<String, List<MetricSummary>>? metricSummaries,
SentryTransactionInfo? transactionInfo,
}) =>
SentryTransaction(
tracer,
eventId: eventId ?? this.eventId,
timestamp: timestamp ?? this.timestamp,
platform: platform ?? this.platform,
serverName: serverName ?? this.serverName,
release: release ?? this.release,
dist: dist ?? this.dist,
environment: environment ?? this.environment,
transaction: transaction ?? this.transaction,
throwable: throwable ?? this.throwable,
tags: (tags != null ? Map.from(tags) : null) ?? this.tags,
// ignore: deprecated_member_use_from_same_package
extra: (extra != null ? Map.from(extra) : null) ?? this.extra,
user: user ?? this.user,
contexts: contexts ?? this.contexts,
breadcrumbs: (breadcrumbs != null ? List.from(breadcrumbs) : null) ??
this.breadcrumbs,
sdk: sdk ?? this.sdk,
request: request ?? this.request,
type: type ?? this.type,
measurements: (measurements != null ? Map.from(measurements) : null) ??
this.measurements,
metricSummaries:
(metricSummaries != null ? Map.from(metricSummaries) : null) ??
this.metricSummaries,
transactionInfo: transactionInfo ?? this.transactionInfo,
);