12 Sep 2023 04:38 PM - last edited on 20 Dec 2023 03:31 PM by Michal_Gebacki
Hi guys,
Trying to find the right payload for the body of /api/v2/otlp/v1/logs, keep getting Error: response status is 400
Can anyone show example of An ExportLogsServiceRequest message in binary protobuf format. that works?
Thanks in advance
Yos
Solved! Go to Solution.
23 Oct 2023 09:49 PM
I am experiencing the same issue, hope to get a reply on this one.
28 Dec 2023 06:51 AM
Hi @Yosi_Neuman and @Jennifer,
Merry Christmas and sorry for the late response, I assume you got it working by now.
Logs are a bit special with OpenTelemetry, as - unlike traces and metrics - they are not supposed to be handled directly via your code and any OpenTelemetry APIs, but via log bridges only. Should there be no such bridge available, the recommended approach is to use the Collector and the applicable receiver component to read the entries and convert them to OTLP.
So, generally, one should avoid assembling the relevant messages by hand, but if your use case requires that, you'll find more information on the protocol and the messages under the following links:
Also verify that you are using regular HTTP and not gRPC.