otlptranslator: fix silently swallowed error in addSumNumberDataPoints by aknuds1 · Pull Request #17954 · prometheus/prometheus
The createAttributes error was incorrectly returning nil instead of err, causing errors to be silently discarded. This could lead to silent data loss for sum metrics during OTLP ingestion. Fixes prometheus#17953 Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters