Tempo: Add error details when json upload fails (#41803)

This commit is contained in:
Andrej Ocenas 2021-11-18 10:35:09 +01:00 committed by GitHub
parent 9a7e411f55
commit 5cd4cde12a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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];