Skip to content

Commit c9ed3ab

Browse files
authored
Merge pull request #8436 from vector-im/feature/bca/update_analytics
Add sentry config for rust crypto
2 parents 7c3ecec + eba31a7 commit c9ed3ab

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

changelog.d/8436.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Updated posthog url (cosmetic, target same server) and added a new sentry env.

vector-config/src/main/java/im/vector/app/config/Config.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ object Config {
8383
* Can be disabled by providing Analytics.Disabled
8484
*/
8585
val RELEASE_ANALYTICS_CONFIG = Analytics.Enabled(
86-
postHogHost = "https://posthog.hss.element.io",
86+
postHogHost = "https://posthog.element.io",
8787
postHogApiKey = "phc_Jzsm6DTm6V2705zeU5dcNvQDlonOR68XvX2sh1sEOHO",
8888
policyLink = "https://element.io/cookie-policy",
8989
sentryDSN = "https://f6acc9cfc2024641b28c87ad95e73e66@sentry.tools.element.io/49",
@@ -95,6 +95,7 @@ object Config {
9595
* Can be disabled by providing Analytics.Disabled
9696
*/
9797
val NIGHTLY_ANALYTICS_CONFIG = RELEASE_ANALYTICS_CONFIG.copy(sentryEnvironment = "NIGHTLY")
98+
val RELEASE_R_ANALYTICS_CONFIG = RELEASE_ANALYTICS_CONFIG.copy(sentryEnvironment = "RELEASE-R")
9899
val ER_NIGHTLY_ANALYTICS_CONFIG = RELEASE_ANALYTICS_CONFIG.copy(sentryEnvironment = "element-r")
99100
val ER_DEBUG_ANALYTICS_CONFIG = DEBUG_ANALYTICS_CONFIG.copy(sentryEnvironment = "element-r")
100101

vector/src/main/java/im/vector/app/core/di/ConfigurationModule.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ object ConfigurationModule {
4848
} else {
4949
Config.NIGHTLY_ANALYTICS_CONFIG
5050
}
51-
"release" -> Config.RELEASE_ANALYTICS_CONFIG
51+
"release" -> if (BuildConfig.FLAVOR == "rustCrypto") {
52+
Config.RELEASE_R_ANALYTICS_CONFIG
53+
} else {
54+
Config.RELEASE_ANALYTICS_CONFIG
55+
}
5256
else -> throw IllegalStateException("Unhandled build type: ${BuildConfig.BUILD_TYPE}")
5357
}
5458
return when (config) {

0 commit comments

Comments
 (0)