diff --git a/app/src/beta/kotlin/com/wire/android/util/DataDogLogger.kt b/app/src/beta/kotlin/com/wire/android/util/DataDogLogger.kt index eb345c431ef..547c9b0fd63 100644 --- a/app/src/beta/kotlin/com/wire/android/util/DataDogLogger.kt +++ b/app/src/beta/kotlin/com/wire/android/util/DataDogLogger.kt @@ -34,13 +34,15 @@ object DataDogLogger : LogWriter() { .build() override fun log(severity: Severity, message: String, tag: String, throwable: Throwable?) { - val attributes = KaliumLogger.UserClientData.getFromTag(tag)?.let { userClientData -> - mapOf( - "userId" to userClientData.userId, - "clientId" to userClientData.clientId, - ) - } ?: emptyMap() - + val logInfo = KaliumLogger.LogAttributes.getInfoFromTagString(tag) + val userAccountData = mapOf( + "userId" to logInfo.userClientData?.userId, + "clientId" to logInfo.userClientData?.clientId, + ) + val attributes = mapOf( + "wireAccount" to userAccountData, + "tag" to logInfo.textTag + ) when (severity) { Severity.Debug -> logger.d(message, throwable, attributes) Severity.Info -> logger.i(message, throwable, attributes)