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:
parent
f09b52cd80
commit
1743f7fe04
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue