Skip to content

Set Sentry environment to alpha for alpha builds - #835

Merged
zhangzhend0ng merged 1 commit into
Snapmaker:feat_macos_15from
zhangzhend0ng:sentry/alpha-environment
Sep 7, 2026
Merged

zhangzhend0ng merged 1 commit into
Snapmaker:feat_macos_15from
zhangzhend0ng:sentry/alpha-environment

Conversation

@zhangzhend0ng

Copy link
Copy Markdown
Collaborator

Description

Set the Sentry environment to alpha so crash reports and logs from alpha builds can be filtered separately in Sentry. Same change as #833, retargeted to feat_macos_15 so alpha builds cut from this branch report environment="alpha".

Previously initSentryEx() hardcoded environment="Release" for every build, so events from alpha builds were indistinguishable from production ones. With this change, builds from branches carrying it report environment="alpha".

Notes:

  • release is unchanged (Snapmaker_VERSION, e.g. 2.4.0), so symbolication / debug-symbol upload is not affected.
  • Custom tags (snapmaker_version, flutter_version, machine_id) are unchanged.
  • The commented-out //sentry_options_set_environment(options, "develop"); hint line is preserved.

Screenshots/Recordings/Graphs

N/A — no UI changes.

Tests

  • Verified via git diff that the only change is the environment value in initSentryEx() (src/sentry_wrapper/SentryWrapper.cpp).
  • Manual validation: build an alpha package from this branch and confirm events show up under environment=alpha in the Sentry UI.

All builds previously reported environment="Release", so crash reports and
logs from alpha builds were indistinguishable from production ones in Sentry.
Alpha builds now report environment="alpha" and can be filtered separately.

release stays Snapmaker_VERSION, so symbolication is unaffected.
@zhangzhend0ng
zhangzhend0ng merged commit 7ed3ebc into Snapmaker:feat_macos_15 Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant