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
2cd9239a77
commit
8718bd5239
2 changed files with 2 additions and 1 deletions
|
|
@ -97,6 +97,6 @@ class SentryAnalyticsProvider(
|
||||||
|
|
||||||
private fun BuildType.toSentryEnv() = when (this) {
|
private fun BuildType.toSentryEnv() = when (this) {
|
||||||
BuildType.RELEASE -> SentryConfig.ENV_RELEASE
|
BuildType.RELEASE -> SentryConfig.ENV_RELEASE
|
||||||
BuildType.NIGHTLY,
|
BuildType.NIGHTLY -> SentryConfig.ENV_NIGHTLY
|
||||||
BuildType.DEBUG -> SentryConfig.ENV_DEBUG
|
BuildType.DEBUG -> SentryConfig.ENV_DEBUG
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,6 @@ object SentryConfig {
|
||||||
const val NAME = "Sentry"
|
const val NAME = "Sentry"
|
||||||
const val DSN = BuildConfig.SENTRY_DSN
|
const val DSN = BuildConfig.SENTRY_DSN
|
||||||
const val ENV_DEBUG = "DEBUG"
|
const val ENV_DEBUG = "DEBUG"
|
||||||
|
const val ENV_NIGHTLY = "NIGHTLY"
|
||||||
const val ENV_RELEASE = "RELEASE"
|
const val ENV_RELEASE = "RELEASE"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue