Is your feature request related to a problem? Please describe.
While configuring telemetry using the OTLP format, I received the following error:
Error in reporter OTLPExporterError: Bad Request
at IncomingMessage.<anonymous> (.../node_modules/@opentelemetry/otlp-exporter-base/src/platform/node/http-transport-utils.ts:75:23)
at IncomingMessage.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
data: undefined,
code: 400
}
This wasn't very helpful, but I opened up the node_modules source and included responseData.toString(), and then instead I got this output
Error in reporter OTLPExporterError: Bad Request
at IncomingMessage.<anonymous> (/Users/glen/Development/Geckoboard/polecat/shakespeare/node_modules/@opentelemetry/otlp-exporter-base/src/platform/node/http-transport-utils.ts:75:23)
at IncomingMessage.emit (node:events:530:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
data: '{"error":"invalid OTLP endpoint - should you be sending to /v1/traces?, see API docs https://docs.honeycomb.io/"}\n',
code: 400
}
Describe 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.
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