From 5cd4cde12ae94df8f1afb8b7a45b96fa1529dc44 Mon Sep 17 00:00:00 2001 From: Andrej Ocenas Date: Thu, 18 Nov 2021 10:35:09 +0100 Subject: [PATCH] Tempo: Add error details when json upload fails (#41803) --- public/app/plugins/datasource/tempo/resultTransformer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/plugins/datasource/tempo/resultTransformer.ts b/public/app/plugins/datasource/tempo/resultTransformer.ts index 7a26bf29c37..2e7e010b05e 100644 --- a/public/app/plugins/datasource/tempo/resultTransformer.ts +++ b/public/app/plugins/datasource/tempo/resultTransformer.ts @@ -291,7 +291,8 @@ export function transformFromOTLP( } } } catch (error) { - return { error: { message: 'JSON is not valid OpenTelemetry format' }, data: [] }; + console.error(error); + return { error: { message: 'JSON is not valid OpenTelemetry format: ' + error }, data: [] }; } let data = [frame];