Skip to content

Commit 04f7c53

Browse files
committed
Include the OS in reported exceptions
1 parent 1dd9f3b commit 04f7c53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/error-tracking.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ let sentryInitialized = false;
44

55
export function initErrorTracking() {
66
const packageJson = require('../package.json');
7+
78
let { SENTRY_DSN } = process.env;
89
if (!SENTRY_DSN && process.env.HTTPTOOLKIT_SERVER_BINPATH) {
910
// If we're a built binary, use the standard DSN automatically
@@ -12,6 +13,9 @@ export function initErrorTracking() {
1213

1314
if (SENTRY_DSN) {
1415
Sentry.init({ dsn: SENTRY_DSN, release: packageJson.version });
16+
Sentry.configureScope((scope) => {
17+
scope.setTag('platform', process.platform);
18+
});
1519
sentryInitialized = true;
1620
}
1721
}

0 commit comments

Comments
 (0)