We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70cbbaa commit ac897faCopy full SHA for ac897fa
packages/nuxt/src/runtime/hooks/wrapMiddlewareHandler.ts
@@ -8,6 +8,7 @@ import {
8
SEMANTIC_ATTRIBUTE_SENTRY_OP,
9
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
10
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
11
+ SPAN_STATUS_ERROR,
12
SPAN_STATUS_OK,
13
startSpan,
14
} from '@sentry/core';
@@ -111,6 +112,7 @@ function withSpan<TResult>(
111
112
113
return result;
114
} catch (error) {
115
+ span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });
116
captureException(error, {
117
mechanism: {
118
handled: false,
0 commit comments