Add initialScope (tags)

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen committed 2021-07-08 10:37:47 +03:00
1 parent d3abeac7dc
commit 6616c0b937
2 files changed
+14

No files matched your search

+7
View File
@@ -76,6 +76,13 @@ Sentry.init({
new Dedupe(), new Dedupe(),
new Offline() new Offline()
], ],
initialScope: {
tags: {
"process": "main",
"rocess.env.NODE_ENV": process.env.NODE_ENV,
"process.env.CICD": process.env.CICD
}
}
}); });
const workingDir = path.join(app.getPath("appData"), appName); const workingDir = path.join(app.getPath("appData"), appName);
+7
View File
@@ -54,6 +54,13 @@ Sentry.init({
new Dedupe(), new Dedupe(),
new Offline() new Offline()
], ],
initialScope: {
tags: {
"process": "renderer",
"rocess.env.NODE_ENV": process.env.NODE_ENV,
"process.env.CICD": process.env.CICD
}
}
}); });
@observer @observer