Skip to content

Commit

Permalink
Add analytics config to test server load
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Dec 13, 2024
1 parent e99529f commit eb977c6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.d/1140.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ajout de la configuration posthog pour vérifier la charge en production.
2 changes: 1 addition & 1 deletion towncrier.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.towncrier]
version = "2.14.0"
version = "2.15.0"
directory = "changelog.d"
filename = "TCHAP_CHANGES.md"
name = "Changes in Tchap"
Expand Down
2 changes: 1 addition & 1 deletion vector-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ knit {

// Note: 2 digits max for each value
ext.versionMajor = 2
ext.versionMinor = 14
ext.versionMinor = 15
// Note: even values are reserved for regular release, odd values for hotfix release.
// When creating a hotfix, you should decrease the value, since the current value
// is the value for the next regular release.
Expand Down
10 changes: 8 additions & 2 deletions vector-config/src/main/java/im/vector/app/config/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ object Config {
val DEBUG_ANALYTICS_CONFIG = Analytics.Enabled(
postHogHost = "https://us.i.posthog.com", // TCHAP dev posthog
postHogApiKey = "phc_eQOeaQiaIxdX9kaQmqYTD7RJLyFubYmGYKUI9czqqQD", // TCHAP dev posthog
policyLink = "https://tchap.beta.gouv.fr/politique-de-confidentialite", // TCHAP dev posthog
policyLink = "https://tchap.beta.gouv.fr/politique-de-confidentialite",
sentryDSN = "",
sentryEnvironment = "DEBUG"
)
Expand All @@ -95,7 +95,13 @@ object Config {
* The analytics configuration to use for the Release build type.
* Can be disabled by providing Analytics.Disabled
*/
val RELEASE_ANALYTICS_CONFIG = Analytics.Disabled // TCHAP No analytics
val RELEASE_ANALYTICS_CONFIG = Analytics.Enabled(
postHogHost = "https://posthogdev.tchap.incubateur.net", // TCHAP prod posthog
postHogApiKey = "phc_FFa4pkvmuWjF9nZOMmYJWUXMibuYnCnPyf3DqPGZs4L", // TCHAP prod posthog
policyLink = "https://tchap.beta.gouv.fr/politique-de-confidentialite",
sentryDSN = "",
sentryEnvironment = "RELEASE"
)

/**
* The analytics configuration to use for the Nightly build type.
Expand Down

0 comments on commit eb977c6

Please sign in to comment.