SentryEvent constructor
SentryEvent({
- SentryId? eventId,
- DateTime? timestamp,
- Map<
String, String> ? modules, - 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, - List<
Breadcrumb> ? breadcrumbs, - List<
SentryException> ? exceptions, - List<
SentryThread> ? threads, - SdkVersion? sdk,
- String? platform,
- String? logger,
- String? serverName,
- String? release,
- String? dist,
- String? environment,
- SentryMessage? message,
- String? transaction,
- dynamic throwable,
- SentryLevel? level,
- String? culprit,
- SentryUser? user,
- Contexts? contexts,
- SentryRequest? request,
- DebugMeta? debugMeta,
- String? type,
- Map<
String, dynamic> ? unknown,
Creates an event.
Implementation
SentryEvent({
SentryId? eventId,
DateTime? timestamp,
Map<String, String>? modules,
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,
List<Breadcrumb>? breadcrumbs,
List<SentryException>? exceptions,
List<SentryThread>? threads,
this.sdk,
this.platform,
this.logger,
this.serverName,
this.release,
this.dist,
this.environment,
this.message,
this.transaction,
dynamic throwable,
this.level,
this.culprit,
this.user,
Contexts? contexts,
this.request,
this.debugMeta,
this.type,
this.unknown,
}) : eventId = eventId ?? SentryId.newId(),
timestamp = timestamp ?? getUtcDateTime(),
contexts = contexts ?? Contexts(),
modules = modules != null ? Map.from(modules) : null,
tags = tags != null ? Map.from(tags) : null,
// ignore: deprecated_member_use_from_same_package
extra = extra != null ? Map.from(extra) : null,
fingerprint = fingerprint != null ? List.from(fingerprint) : null,
breadcrumbs = breadcrumbs != null ? List.from(breadcrumbs) : null,
exceptions = exceptions != null ? List.from(exceptions) : null,
threads = threads != null ? List.from(threads) : null,
_throwable = throwable;