VictoriaMetrics/app/vlinsert/opentelemetry
Andrii Chubatiuk c72d5690cc
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 18:38:25 +01:00
..
opentelemetry.go lib/protoparser/opentelemetry: properly marshal nested attributes into JSON 2025-03-05 18:38:25 +01:00
opentelemetry_test.go lib/protoparser/opentelemetry: properly marshal nested attributes into JSON 2025-03-05 18:38:25 +01:00
opentelemetry_timing_test.go app/vlinsert: use default set of log stream fields for Loki and OpenTelemetry protocols if _stream_fields query arg is empty 2024-12-05 15:16:53 +01:00