MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / markEventUnhandled

Function markEventUnhandled

packages/aws-serverless/src/utils.ts:16–23  ·  view source on GitHub ↗
(scope: Scope, type: string)

Source from the content-addressed store, hash-verified

14 * Marks an event as unhandled by adding a span processor to the passed scope.
15 */
16export function markEventUnhandled(scope: Scope, type: string): Scope {
17 scope.addEventProcessor(event => {
18 addExceptionMechanism(event, { handled: false, type });
19 return event;
20 });
21
22 return scope;
23}
24
25/**
26 * Extracts sentry trace data from the handler `context` if available and falls

Callers 3

processResultFunction · 0.90
processStreamingResultFunction · 0.90
_captureErrorMethod · 0.90

Calls 2

addExceptionMechanismFunction · 0.90
addEventProcessorMethod · 0.80

Tested by

no test coverage detected