Skip to content

Set Sentry environment to alpha for alpha builds - #833

Open
zhangzhend0ng wants to merge 1 commit into
Snapmaker:mainfrom
zhangzhend0ng:sentry/alpha-environment
Open

Set Sentry environment to alpha for alpha builds#833
zhangzhend0ng wants to merge 1 commit into
Snapmaker:mainfrom
zhangzhend0ng:sentry/alpha-environment

Conversation

@zhangzhend0ng

@zhangzhend0ng zhangzhend0ng commented Sep 7, 2026

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.

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.

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.
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