Skip to content

Commit

Permalink
Add sentry config for rust crypto
Browse files Browse the repository at this point in the history
update posthog url
  • Loading branch information
BillCarsonFr committed May 15, 2023
1 parent 04f5ae1 commit 7313fc0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion vector-config/src/main/java/im/vector/app/config/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7313fc0

Please sign in to comment.