VictoriaMetrics/lib/protoparser
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
..
common lib/protoparser: decrease import.maxLineLen from 100MB to 10MB (#5364) 2023-11-24 12:53:04 +02:00
csvimport lib/protoparser: substitute hybrid channel-based pools with plain sync.Pool 2024-04-20 21:59:51 +02:00
datadogsketches make: bump golangci-lint to v1.63.4 ( 2025-01-13 07:18:04 +01:00
datadogutils lib: consistently use regexp.Regexp.ReplaceAllLiteralString instead of regexp.Regexp.ReplaceAllString in places where the replacement cannot contain matching group placeholders 2024-07-17 12:41:54 +02:00
datadogv1 lib/protoparser: substitute hybrid channel-based pools with plain sync.Pool 2024-04-20 21:59:51 +02:00
datadogv2 lib/protoparser: substitute hybrid channel-based pools with plain sync.Pool 2024-04-20 21:59:51 +02:00
graphite lib/protoparser/graphite: use Regex.ReplaceAllLiteralString instead of Regex.ReplaceAllString for the case when the replacement cannot contain placeholders for capturing groups 2024-07-17 13:01:05 +02:00
influx lib/protoparser/influx: add -influx.forceStreamMode flag to force parsing all Influx data in stream mode (#8319) 2025-02-19 17:05:02 +01:00
native/stream all: consistently use 'any' instead of 'interface{}' 2024-07-10 00:20:37 +02:00
newrelic lib/protoparser: substitute hybrid channel-based pools with plain sync.Pool 2024-04-20 21:59:51 +02:00
opentelemetry lib/protoparser/opentelemetry: properly marshal nested attributes into JSON 2025-03-05 16:35:07 +01:00
opentsdb lib/protoparser: substitute hybrid channel-based pools with plain sync.Pool 2024-04-20 21:59:51 +02:00
opentsdbhttp lib/protoparser: substitute hybrid channel-based pools with plain sync.Pool 2024-04-20 21:59:51 +02:00
prometheus lib/prompbmarshal: move MustParsePromMetrics to protoparser/prometheus (#8405) 2025-02-27 22:50:27 +01:00
promremotewrite/stream lib/protoparser: substitute hybrid channel-based pools with plain sync.Pool 2024-04-20 21:59:51 +02:00
vmimport lib/protoparser: substitute hybrid channel-based pools with plain sync.Pool 2024-04-20 21:59:51 +02:00