VictoriaMetrics/lib/protoparser
Andrii Chubatiuk 2adb5fe014
lib/protoparser/opentelemetry: do not drop histogram buckets, when sum is absent (#8054)
Despite requirement in OpenTelemetry spec that histograms should contain
sum, [OpenTelemetry collector promremotewrite
translator](37c8044abf/pkg/translator/prometheusremotewrite/helper.go (L222))
and [Prometheus OpenTelemetry
parsing](d52e689a20/storage/remote/otlptranslator/prometheusremotewrite/helper.go (L264))
skip only sum if it's absent. Our current implementation drops buckets
if sum is absent, which causes issues for users, that are expecting a
similar to Prometheus behaviour

### Describe Your Changes

Please provide a brief description of the changes you made. Be as
specific as possible to help others understand the purpose and impact of
your modifications.

### Checklist

The following checks are **mandatory**:

- [ ] My change adheres [VictoriaMetrics contributing
guidelines](https://docs.victoriametrics.com/contributing/).

---------

Co-authored-by: Roman Khavronenko <roman@victoriametrics.com>
2025-01-21 12:46:55 +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: enable batch processing by default (#7165) 2024-10-15 11:48:40 +02: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: do not drop histogram buckets, when sum is absent (#8054) 2025-01-21 12:46:55 +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 Revert "Exemplar support (#5982)" 2024-07-03 15:30:21 +02: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