From 2660d465dbf9b84401544bfba190ed26a25d38e5 Mon Sep 17 00:00:00 2001 From: Tom Van Laerhoven Date: Tue, 15 Oct 2024 15:07:58 +0200 Subject: [PATCH] Include stack from THEOplayerException object --- .../android/connector/analytics/conviva/utils/Utils.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/connectors/analytics/conviva/src/main/java/com/theoplayer/android/connector/analytics/conviva/utils/Utils.kt b/connectors/analytics/conviva/src/main/java/com/theoplayer/android/connector/analytics/conviva/utils/Utils.kt index bdadfb5d..e1bb268e 100644 --- a/connectors/analytics/conviva/src/main/java/com/theoplayer/android/connector/analytics/conviva/utils/Utils.kt +++ b/connectors/analytics/conviva/src/main/java/com/theoplayer/android/connector/analytics/conviva/utils/Utils.kt @@ -165,7 +165,8 @@ fun flattenErrorObject(error: THEOplayerException): Map { return mapOf( "code" to error.code.name, "category" to error.category.name, - "stack" to (error.cause?.stackTraceToString() ?: ""), - "message" to (error.cause?.message ?: "") + "stack" to (error.stackTraceToString()), + "cause.stack" to (error.cause?.stackTraceToString() ?: ""), + "cause.message" to (error.cause?.message ?: "") ).filterValues { it != "" } // Remove entries with empty values }