(scope: Scope, type: string)
| 14 | * Marks an event as unhandled by adding a span processor to the passed scope. |
| 15 | */ |
| 16 | export 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 |
no test coverage detected