Arve Knudsen 2332962c4b
otlptranslator: filter __name__ from OTLP attributes to prevent duplicates (#17917)
* otlptranslator: filter __name__ from OTLP attributes to prevent duplicates

OTLP metrics can have a __name__ attribute which, when combined with the
metric name passed via extras, creates duplicate __name__ labels.
This commit implements filtering out of any __name__ metric attribute from OTLP.

Also rename TestCreateAttributes to TestPrometheusConverter_createAttributes
for consistency, and add test cases for __name__, __type__, and __unit__ OTLP metric attributes.

---------

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-01-24 16:44:08 +01:00
..
2026-01-14 13:15:17 +01:00
2026-01-14 13:15:19 +01:00
2026-01-14 13:15:14 +01:00