Nikolay
1f1ed8ecd2
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:18:01 +02:00
..
2026-04-09 18:35:24 +03:00
2026-02-18 14:30:32 +01:00
2024-10-01 16:37:18 +02:00
2026-04-16 11:52:56 +02:00
2026-04-16 22:51:27 +02:00
2026-02-18 19:20:09 +01:00
2026-02-18 14:30:32 +01:00
2025-01-29 16:38:38 +01:00
2025-09-05 17:11:37 +02:00
2026-02-18 19:02:36 +01:00
2026-04-22 11:30:06 +02:00
2026-02-18 14:30:32 +01:00
2026-02-18 14:30:32 +01:00
2026-04-09 08:47:18 +02:00
2024-09-26 17:07:25 +02:00
2026-02-18 19:20:09 +01:00
2026-03-11 12:12:19 +01:00
2026-01-26 03:14:23 +01:00
2026-02-18 14:30:32 +01:00
2026-02-18 19:20:09 +01:00
2026-02-11 17:37:58 +01:00
2026-04-02 13:18:56 +02:00
2026-02-18 19:02:35 +01:00
2026-03-27 09:53:01 +01:00
2026-04-16 23:01:29 +02:00
2023-11-13 20:28:17 +01:00
2026-03-05 16:13:40 +01:00
2025-11-13 17:36:51 +01:00
2025-03-26 17:39:01 +01:00
2026-02-18 14:30:32 +01:00
2026-01-17 15:50:24 +01:00
2026-03-26 10:24:58 +01:00
2026-02-18 14:30:32 +01:00
2026-01-25 17:50:51 +01:00
2025-07-07 03:25:53 +02:00
2026-03-26 16:31:51 +01:00
2025-12-05 18:21:31 +01:00
2026-03-17 10:54:42 +01:00
2026-04-20 12:13:47 +02:00
2026-02-18 19:02:36 +01:00
2025-03-17 16:38:11 +01:00
2026-03-26 10:24:57 +01:00
2026-02-19 18:48:20 +02:00
2026-02-18 14:30:32 +01:00
2026-02-18 14:30:32 +01:00
2026-04-16 22:51:32 +02:00
2026-02-18 14:30:32 +01:00
2026-04-28 11:18:01 +02:00
2026-02-18 19:02:35 +01:00
2026-01-30 13:06:51 +02:00
2026-02-18 14:30:32 +01:00
2025-08-18 22:55:53 +02:00
2026-02-20 11:56:47 +01:00
2025-10-24 11:05:45 +02:00
2025-07-15 00:12:52 +02:00
2026-04-23 18:31:07 +02:00
2026-04-20 11:48:49 +02:00
2026-02-18 14:30:32 +01:00
2026-02-18 14:30:32 +01:00
2026-02-25 21:10:52 +01:00
2025-07-31 01:37:10 +03:00
2026-04-23 18:31:07 +02:00
2026-02-24 11:29:10 +01:00
2026-02-18 19:20:09 +01:00
2026-04-01 22:37:43 +02:00
2026-03-16 11:14:47 +01:00
2026-04-10 19:39:06 +02:00