Closed as not planned
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?