-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Closed as not planned
Copy link
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK
Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
- Provide a link to the affected event from your Sentry account
Package + Version
-
@sentry/browser -
@sentry/node -
raven-js -
raven-node(raven for node) - other: @sentry/nextjs
Version:
^6.13.3
Description
I am capturing some errors and I try to add the scope like so:
function captureError({ severity = Severity.Error, error, failScope, extras }: CaptureErrorArgs) {
withScope(function (scope) {
scope.setTag('fail-scope', failScope);
scope.setLevel(severity);
extras && scope.setExtras(extras);
captureException(error);
});
}
Problem is that the errors on sentry dashboard have the scope sometimes and sometimes they dont.
I have tried all the different ways to pass the scope in the capture exception but none seems to work. Any help?
marcosansoni, danijelgrabez and danielzlotnik
Metadata
Metadata
Assignees
Labels
Package: nextjsIssues related to the Sentry Nextjs SDKIssues related to the Sentry Nextjs SDK