Encoding OTLP Protocol in REST Packets

TLDR Mac and Srikanth discussed challenges and possible solutions for encoding OpenTelemetry Protocol (OTLP) data correctly. An OTLP exporter was suggested to Mac.

Photo of Mac
Mac
Mon, 11 Sep 2023 16:36:57 UTC

Meaning encoding the REST OTLP packets as protobuf fields ain't happening

Photo of Pranay
Pranay
Mon, 11 Sep 2023 16:40:28 UTC

Srikanth are there any possible solutions on this can be done?

Photo of Srikanth
Srikanth
Mon, 11 Sep 2023 16:59:09 UTC

Mac the encoding of the data and sending it is taken care by _exporter._ Are you using any OTLP http exporter or are you trying to write your own exporter?

Photo of Mac
Mac
Mon, 11 Sep 2023 17:06:01 UTC

It's an extremely basic OTLP exporter that yes, I implemented in the Google Apps Script. I was trying to initially just send the data over in normal JSON formatting, not realizing it had to be protobuf-encoded JSON data. So I'm currently just having it console.log(spanpayload) to the Google Stackdriver logging system. It kind of shows the same data, just not really OTLP-compliant.

Photo of Srikanth
Srikanth
Mon, 11 Sep 2023 17:10:19 UTC

> I was trying to initially just send the data over in normal JSON formatting, not realizing it had to be protobuf-encoded JSON data Just want to make sure I understand it, by `protobuf-encoded` JSON data, you mean the JSON payload that is OTLP compliant right? Have you looked at ?