make OTLPExporterError less cryptic by including the response body #5201
Labels
pkg:otlp-exporter-base
triage:accepted
This feature has been accepted
type:feature
A feature with no sub-issues to address
Is your feature request related to a problem? Please describe.
While configuring telemetry using the OTLP format, I received the following error:
This wasn't very helpful, but I opened up the node_modules source and included
responseData.toString()
, and then instead I got this outputDescribe the solution you'd like
I'd like the exporter error to include any available context about what the error might be - but especially the response body from the remote host
Describe alternatives you've considered
My alternative was enabling debug logging at various levels, but this wasn't especially helpful as everything is encrypted.
Additional context
n/a
The text was updated successfully, but these errors were encountered: