1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Add initialScope (tags)

Signed-off-by: Hung-Han (Henry) Chen <chenhungh@gmail.com>
This commit is contained in:
Hung-Han (Henry) Chen 2021-07-02 15:30:23 +03:00
parent d3abeac7dc
commit 6616c0b937
No known key found for this signature in database
GPG Key ID: 54B44603D251B788
2 changed files with 14 additions and 0 deletions

View File

@ -76,6 +76,13 @@ Sentry.init({
new Dedupe(),
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);

View File

@ -54,6 +54,13 @@ Sentry.init({
new Dedupe(),
new Offline()
],
initialScope: {
tags: {
"process": "renderer",
"rocess.env.NODE_ENV": process.env.NODE_ENV,
"process.env.CICD": process.env.CICD
}
}
});
@observer