cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Right payload format for /api/v2/otlp/v1/logs

Yosi_Neuman
DynaMight Guru
DynaMight Guru

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?

Yosi_Neuman_0-1694532790548.png

Thanks in advance 

Yos 

dynatrace certificated professional - dynatrace master partner - Matrix Soft Ware Division - Israel
2 REPLIES 2

Jennifer
Observer

I am experiencing the same issue, hope to get a reply on this one.

alexander_dt
Dynatrace Helper
Dynatrace Helper

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.

Featured Posts