otlptranslator: fix silently swallowed error in addSumNumberDataPoints by aknuds1 · Pull Request #17954 · prometheus/prometheus

@aknuds1

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>

ArthurSens