Add AnalyticsUserData, with keys for several extras we want to upload to Sentry.

Add the `HOMESERVER` extra, with a hashed homeserver value. This is only so we can identify devices using a problematic HS (like matrix.org under heavy load).
This commit is contained in:
Jorge Martín
2025-12-16 16:45:54 +01:00
committed by Jorge Martin Espinosa
parent 367bbc7e4b
commit 18482a99e3
2 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
/*
* Copyright (c) 2025 Element Creations Ltd.
*
* SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial.
* Please see LICENSE files in the repository root for full details.
*/
package io.element.android.services.analyticsproviders.api
object AnalyticsUserData {
const val HOMESERVER = "homeserver"
const val STATE_STORE_SIZE = "state_store_size"
const val EVENT_CACHE_SIZE = "event_cache_size"
const val CRYPTO_STORE_SIZE = "crypto_store_size"
const val MEDIA_STORE_SIZE = "media_store_size"
}