Merge pull request #8436 from vector-im/feature/bca/update_analytics
Add sentry config for rust crypto
This commit is contained in:
commit
c9ed3abc36
|
@ -0,0 +1 @@
|
|||
Updated posthog url (cosmetic, target same server) and added a new sentry env.
|
|
@ -83,7 +83,7 @@ object Config {
|
|||
* Can be disabled by providing Analytics.Disabled
|
||||
*/
|
||||
val RELEASE_ANALYTICS_CONFIG = Analytics.Enabled(
|
||||
postHogHost = "https://posthog.hss.element.io",
|
||||
postHogHost = "https://posthog.element.io",
|
||||
postHogApiKey = "phc_Jzsm6DTm6V2705zeU5dcNvQDlonOR68XvX2sh1sEOHO",
|
||||
policyLink = "https://element.io/cookie-policy",
|
||||
sentryDSN = "https://f6acc9cfc2024641b28c87ad95e73e66@sentry.tools.element.io/49",
|
||||
|
@ -95,6 +95,7 @@ object Config {
|
|||
* Can be disabled by providing Analytics.Disabled
|
||||
*/
|
||||
val NIGHTLY_ANALYTICS_CONFIG = RELEASE_ANALYTICS_CONFIG.copy(sentryEnvironment = "NIGHTLY")
|
||||
val RELEASE_R_ANALYTICS_CONFIG = RELEASE_ANALYTICS_CONFIG.copy(sentryEnvironment = "RELEASE-R")
|
||||
val ER_NIGHTLY_ANALYTICS_CONFIG = RELEASE_ANALYTICS_CONFIG.copy(sentryEnvironment = "element-r")
|
||||
val ER_DEBUG_ANALYTICS_CONFIG = DEBUG_ANALYTICS_CONFIG.copy(sentryEnvironment = "element-r")
|
||||
|
||||
|
|
|
@ -48,7 +48,11 @@ object ConfigurationModule {
|
|||
} else {
|
||||
Config.NIGHTLY_ANALYTICS_CONFIG
|
||||
}
|
||||
"release" -> Config.RELEASE_ANALYTICS_CONFIG
|
||||
"release" -> if (BuildConfig.FLAVOR == "rustCrypto") {
|
||||
Config.RELEASE_R_ANALYTICS_CONFIG
|
||||
} else {
|
||||
Config.RELEASE_ANALYTICS_CONFIG
|
||||
}
|
||||
else -> throw IllegalStateException("Unhandled build type: ${BuildConfig.BUILD_TYPE}")
|
||||
}
|
||||
return when (config) {
|
||||
|
|
Loading…
Reference in New Issue