Add platform to Sentry relase - #148
Conversation
This will help us differentiate release metrics by platform.
# Conflicts: # src/index.ts
| } | ||
|
|
||
| export function getPlatformName() { | ||
| const platform = process ? process.platform : getAppGlobals().platform; |
There was a problem hiding this comment.
For now, this function is only used in the main process (which has access to process object and node). However, I also added support for invocations from the renderer process via the app globals, in case we need it in the future.
derekblank
left a comment
There was a problem hiding this comment.
LGTM. 🚀
I observed that the platform name was appended to the release when logging out the Sentry init values:
macOS: 1.0.2-macos
Windows: 1.0.2-windows
|
Asking largely for my own education: Is the existing operating system context on all events (e.g., |
@dcalhoun One of the reasons prompting this change was filtering the Crash Threshold Alert by platform. When adding another param such as Does this match your experience, or do you note a way to filter Crash Alert data by platform (using any available param, not just the ones already mentioned here)? |
@dcalhoun These changes are needed to split the crash-free metrics by platform. As far as I've checked, I haven't found a way to get those metrics for a specific release or set up an alert (as Derek shared here). UPDATE: Looks like there's already a feature request on Sentry related to this (getsentry/sentry#58348). |
|
Thanks @derekblank and @fluiddot. You provided the context I was missing — a desire to configure independent health status alerts for each platform. Based on the references you shared, I agree including the platform name in the release name is likely the most straightforward approach for now. |


Proposed Changes
Testing Instructions
1.0.2-macos1.0.2-windows1.0.2-linuxPre-merge Checklist