-
Notifications
You must be signed in to change notification settings - Fork 938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update sentry #999
Update sentry #999
Conversation
e94de81
to
1633966
Compare
src/util/log.js
Outdated
Sentry.captureException(e); | ||
}); | ||
|
||
//Sentry.captureException(e, { tags: { code }, extra }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this line.
return scope.setTag(tag, extra[tag]); | ||
}); | ||
Sentry.captureException(e); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should use setExtra
instead of just setTag
:
const extra = { ...data, apiErrorData: responseApiErrorInfo(e) };
Sentry.withScope(scope => {
scope.setTag('code', code);
Object.keys(extra).forEach(key => {
scope.setExtra(key, extra[key]);
});
Sentry.captureException(e);
});
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this part also in server/log.js!
1633966
to
c43f9c0
Compare
Update Sentry SDKs for browser and Node.js to version 4.5.1. With the new SDKs only one
DSN needs to be configured so update also environment variables and documentation related to
Sentry.