Add NIGHTLY env for Sentry (#5779)

Previously, nightly issue reports and performance transactions were uploaded to 'DEBUG', which may make sense for issues, but not for performance traces.
This commit is contained in:
Jorge Martin Espinosa 2025-11-20 15:17:32 +01:00 committed by GitHub
parent f09b52cd80
commit 1743f7fe04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -97,6 +97,6 @@ class SentryAnalyticsProvider(
private fun BuildType.toSentryEnv() = when (this) {
BuildType.RELEASE -> SentryConfig.ENV_RELEASE
BuildType.NIGHTLY,
BuildType.NIGHTLY -> SentryConfig.ENV_NIGHTLY
BuildType.DEBUG -> SentryConfig.ENV_DEBUG
}

View file

@ -12,5 +12,6 @@ object SentryConfig {
const val NAME = "Sentry"
const val DSN = BuildConfig.SENTRY_DSN
const val ENV_DEBUG = "DEBUG"
const val ENV_NIGHTLY = "NIGHTLY"
const val ENV_RELEASE = "RELEASE"
}