We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dd9f3b commit 04f7c53Copy full SHA for 04f7c53
src/error-tracking.ts
@@ -4,6 +4,7 @@ let sentryInitialized = false;
4
5
export function initErrorTracking() {
6
const packageJson = require('../package.json');
7
+
8
let { SENTRY_DSN } = process.env;
9
if (!SENTRY_DSN && process.env.HTTPTOOLKIT_SERVER_BINPATH) {
10
// If we're a built binary, use the standard DSN automatically
@@ -12,6 +13,9 @@ export function initErrorTracking() {
12
13
14
if (SENTRY_DSN) {
15
Sentry.init({ dsn: SENTRY_DSN, release: packageJson.version });
16
+ Sentry.configureScope((scope) => {
17
+ scope.setTag('platform', process.platform);
18
+ });
19
sentryInitialized = true;
20
}
21
0 commit comments