Add release tag to client-submitted sentry events

This commit is contained in:
Dannon Baker
2022-06-27 13:08:46 -04:00
parent 533a33f935
commit 419003dfbf
+5 -1
View File
@@ -11,7 +11,11 @@ export const initSentry = (galaxy, config) => {
if (config.sentry) {
const { sentry_dsn_public, email } = config.sentry;
Sentry.init({ dsn: sentry_dsn_public });
const release = `${config.version_major}.${config.version_minor}`;
Sentry.init({
dsn: sentry_dsn_public,
release: release,
});
if (email) {
Sentry.configureScope((scope) => {
scope.setUser({