mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
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:
committed by
GitHub
parent
f09b52cd80
commit
1743f7fe04
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
+1
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user