Merge pull request #8436 from vector-im/feature/bca/update_analytics

Add sentry config for rust crypto
This commit is contained in:
Valere 2023-05-15 21:44:02 +02:00 committed by GitHub
commit c9ed3abc36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

1
changelog.d/8436.misc Normal file
View file

@ -0,0 +1 @@
Updated posthog url (cosmetic, target same server) and added a new sentry env.

View file

@ -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")

View file

@ -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) {