Skip to content

Commit 38281b1

Browse files
committed
upgrade to v8
1 parent e8e144b commit 38281b1

File tree

4 files changed

+1041
-42
lines changed

4 files changed

+1041
-42
lines changed

apps/express/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"extends": "../../package.json"
1616
},
1717
"dependencies": {
18-
"@sentry/node": "^7.109.0",
18+
"@sentry/node": "^8.0.0-alpha.9",
1919
"express": "^4.19.2"
2020
},
2121
"devDependencies": {

apps/express/src/app.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
import * as Sentry from '@sentry/node';
2+
3+
Sentry.init({
4+
environment: 'qa', // dynamic sampling bias to keep transactions
5+
dsn: process.env.E2E_TEST_DSN,
6+
includeLocalVariables: true,
7+
debug: true,
8+
tunnel: `http://localhost:3031/`, // proxy server
9+
tracesSampleRate: 1,
10+
});
11+
12+
// can use `import` instead of `require` because of `'esModuleInterop': true` in tsconfig.json
213
import express from 'express';
314

415
declare global {
@@ -91,7 +102,7 @@ app.get('/test-local-variables-caught', function (req, res) {
91102
res.send({ exceptionId, randomVariableToRecord });
92103
});
93104

94-
app.use(Sentry.Handlers.errorHandler());
105+
Sentry.setupExpressErrorHandler(app);
95106

96107
// @ts-ignore
97108
app.use(function onError(err, req, res, next) {

utils/event-proxy-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"clean": "rimraf -g ./node_modules ./build"
1717
},
1818
"dependencies": {
19-
"@sentry/types": "7.109.0",
20-
"@sentry/utils": "7.109.0"
19+
"@sentry/types": "8.0.0-alpha.9",
20+
"@sentry/utils": "8.0.0-alpha.9"
2121
},
2222
"volta": {
2323
"extends": "../../package.json"

0 commit comments

Comments
 (0)