Skip to content

Commit

Permalink
chore: add git commit hash to external logger (#2731)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamad Jaara <[email protected]>
Co-authored-by: yamilmedina <[email protected]>
  • Loading branch information
3 people authored Mar 28, 2024
1 parent 5a55ca5 commit 7898006
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7898006

Please sign in to comment.