captureEvent static method
Future<SentryId>
captureEvent(
- SentryEvent event, {
- dynamic stackTrace,
- Hint? hint,
- ScopeCallback? withScope,
Reports an event
to Sentry.io.
Implementation
static Future<SentryId> captureEvent(
SentryEvent event, {
dynamic stackTrace,
Hint? hint,
ScopeCallback? withScope,
}) =>
_taskQueue.enqueue(
() => _hub.captureEvent(
event,
stackTrace: stackTrace,
hint: hint,
withScope: withScope,
),
SentryId.empty(),
event.type != null
? DataCategory.fromItemType(event.type!)
: DataCategory.unknown);