Open demurgos opened 2 months ago
I think you are right. Can you please double check by sending the payload to the otlp receiver in the Collector?
I wrote a test program using Rust's OpenTelemetry SDK. The raw JSON payload is attached below. It uses the the variant with the extra {"value": ...}
layer. Please note that I am not 100% confident in the correctness of Rust's exporter though (I was actually testing it when I stumbled upon the issue).
Please note that I am not 100% confident in the correctness of Rust's exporter though (I was actually testing it when I stumbled upon the issue).
This is the reason I was suggesting to send to the Collector. We consider it the canonical implementation. Can you run a Collector with otlp
receiver and debug
exporter and send it this payload and confirm in the debug output that values are correctly received?
I am writing serialization tests for Opentelemetry Rust, and working with the examoke JSON files in this repo.
I have concerns that the
logs.json
example may be invalid or out of date; or I may be missing something.The example contains an attribute using an array of strings as values:
The JSON above uses
AnyValue
for the array items, but in the protobuf specs I seeArrayValue
which adds a layer of indirection (notice the extra"value"
layer). I would expect the following JSON serialization: