#support

Fixing Error with Manual Instrumenting in Python

TLDR Leong encountered a "Failed to export batch code: 404" error while using manual instrumenting in Python and resolved the issue by adjusting the endpoint.

Powered by Struct AI

1

2
8mo
Solved
Join the chat
Mar 27, 2023 (8 months ago)
Leong
Photo of md5-faf0fdba0b6739a6706f05c15b6738c6
Leong
07:13 AM
Hi, can anyone help here? I am trying to do manual instrumenting as I find auto-instrument pumps in too much data. I am using Python, and I have created a HTTP OTLPSpanExporter, with the endpoint pointing to the clickhouse url, port=4318. But it always return an error "Failed to export batch code: 404".
Does anyone know how to fix this?

1

07:35
Leong
07:35 AM
I have found the fix. When you create our own OTLPMetricExporter or OTLPSpanExporter, the endpoint has to be postfixed with v1/metrics and v1/traces, respectively.