Files
VictoriaMetrics/lib
Nikolay 89c0b1c1aa lib/opentelemetry: properly reset metric metadata
Previously, metricMetadata was not properly reset during parsing of
metrics. It could result into `Unit` suffix to be added from previously
parsed metric into next metric without Unit field.

  For example, metric `http_request` with `Unit` `seconds` will be
converted into `http_request_seconds` and `Unit` field hold `seconds`.
Next parsed metric `cpu_usage_ratio` has no `Unit` and it will get
previous `seconds` `Unit` -> `cpu_usage_ratio_seconds`.

 This commit adds metricMetadata reset call before parsing of next
 metric.

 Bug was introduced at 293d80910c

Fixes https://github.com/VictoriaMetrics/VictoriaMetrics/issues/10889
2026-04-28 11:17:12 +02:00
..
2026-02-18 14:28:31 +01:00
2026-02-18 19:24:27 +01:00
2026-02-18 14:28:31 +01:00
2026-02-18 18:17:20 +01:00
2026-02-18 14:28:31 +01:00
2026-02-18 14:28:31 +01:00
2026-02-18 19:24:27 +01:00
2026-02-18 14:28:31 +01:00
2026-02-18 19:24:27 +01:00
2026-02-18 18:17:20 +01:00
2026-02-18 14:28:31 +01:00
2026-02-18 14:28:31 +01:00
2026-02-18 14:28:31 +01:00
2026-02-18 14:28:31 +01:00
2026-02-18 18:17:20 +01:00
2026-02-18 14:28:31 +01:00
2026-02-18 14:28:31 +01:00
2026-02-18 14:28:31 +01:00