You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But If I only import sentry react, the environment tag appears.
It seems that using only sentry react works for catching correct errors and environment.
With the Electron SDK, all events from renderers are sent through the Electron main process so that all events include the full app and machine context. The environment in the main process therefore takes precedence so you should set your desired environment there.
Maybe we should add some warnings if an environment is passed in the renderer so this is more obvious 🤔
Is there an existing issue for this?
How do you use Sentry?
Self-hosted/on-premise
Electron SDK Version
5.7.0
Electron Version
28.3.3
What platform are you using?
MacOS
Link to Sentry event
No response
Steps to Reproduce
https://docs.sentry.io/platforms/javascript/guides/electron/#framework-specific-sdks
Throw an error in the renderer process function
Build the electron app
Occur the function that makes error
Check Sentry error with json format, and there's no environment attribute under "tags".
This will make environment field to be "--" on Sentry ui.
This only happens in production mode. In development mode, there is an "environment" tag,
Expected Result
Can see which environment the error occurs
Actual Result
Missing the environment field
--
But If I only import sentry react, the environment tag appears.
It seems that using only sentry react works for catching correct errors and environment.
error json
The fields received are different.
Please advise, thanks!
The text was updated successfully, but these errors were encountered: