buildEvent method

SentryEvent buildEvent(
  1. Report report,
  2. Map<String, dynamic> tags
)

Implementation

SentryEvent buildEvent(Report report, Map<String, dynamic> tags) {
  return SentryEvent(
    logger: 'Catcher',
    serverName: 'Catcher',
    release: customRelease ?? _getApplicationVersion(report),
    environment: customEnvironment ??
        (report.applicationParameters['environment'] as String?),
    message: const SentryMessage('Error handled by Catcher'),
    throwable: report.error,
    level: SentryLevel.error,
    culprit: '',
    tags: changeToSentryMap(tags),
    user: userContext,
  );
}