VictoriaMetrics/lib/protoparser/opentelemetry
Andrii Chubatiuk 26fba57cfa
lib/protoparser/opentelemetry: properly marshal nested attributes into JSON
Previously, opentelemetry attribute parsed added extra field names according to 
golang JSON parser spec for structs:

```
struct AnyValue{
 StringValue string
}
```
 Was serialized into:
```
{"StringValue": "some-string"}
```
 While opentelemetry-collector serializes it as
```
"some-string"
```

 This commit changes this behaviour it makes parses compatible with opentelemetry-collector format. See test cases for examples.

Related issue:
https://github.com/VictoriaMetrics/VictoriaMetrics/issues/8384
2025-03-05 16:35:07 +01:00
..
firehose vlinsert: added opentelemetry logs support 2024-09-03 20:12:05 +02:00
pb lib/protoparser/opentelemetry: properly marshal nested attributes into JSON 2025-03-05 16:35:07 +01:00
stream lib/protoparser/opentelemetry: properly marshal nested attributes into JSON 2025-03-05 16:35:07 +01:00