Add release sha
This commit is contained in:
parent
f464ce2b59
commit
76d2c9378a
1 changed files with 4 additions and 1 deletions
5
app.js
5
app.js
|
@ -20,7 +20,10 @@ const app = websockify(new Koa());
|
|||
app.keys = [process.env.COOKIE_KEY];
|
||||
|
||||
if (process.env.SENTRY_DSN) {
|
||||
Sentry.init({ dsn: process.env.SENTRY_DSN });
|
||||
Sentry.init({
|
||||
dsn: process.env.SENTRY_DSN,
|
||||
release: `hostr@${process.env.GIT_REV}`,
|
||||
});
|
||||
app.on('error', (err) => {
|
||||
if (err.statusCode === 404) return;
|
||||
Sentry.captureException(err, (_err, eventId) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue