From 78980069982b01d7695fc1707bccfd83c7a0f6f6 Mon Sep 17 00:00:00 2001 From: AndroidBob Date: Thu, 28 Mar 2024 13:41:49 +0100 Subject: [PATCH] chore: add git commit hash to external logger (#2731) Co-authored-by: Mohamad Jaara Co-authored-by: yamilmedina --- app/src/beta/kotlin/com/wire/android/ExternalLoggerManager.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/beta/kotlin/com/wire/android/ExternalLoggerManager.kt b/app/src/beta/kotlin/com/wire/android/ExternalLoggerManager.kt index d29ebd8205c..78cc0b1658e 100644 --- a/app/src/beta/kotlin/com/wire/android/ExternalLoggerManager.kt +++ b/app/src/beta/kotlin/com/wire/android/ExternalLoggerManager.kt @@ -30,6 +30,7 @@ import com.datadog.android.rum.tracking.ComponentPredicate import com.wire.android.datastore.GlobalDataStore import com.wire.android.ui.WireActivity import com.wire.android.util.getDeviceIdString +import com.wire.android.util.getGitBuildId import com.wire.android.util.sha256 import kotlinx.coroutines.flow.first import kotlinx.coroutines.runBlocking @@ -73,7 +74,8 @@ object ExternalLoggerManager { val credentials = Credentials(clientToken, environmentName, appVariantName, applicationId) val extraInfo = mapOf( - "encrypted_proteus_storage_enabled" to runBlocking { globalDataStore.isEncryptedProteusStorageEnabled().first() } + "encrypted_proteus_storage_enabled" to runBlocking { globalDataStore.isEncryptedProteusStorageEnabled().first() }, + "git_commit_hash" to context.getGitBuildId() ) Datadog.initialize(context, credentials, configuration, TrackingConsent.GRANTED)