prometheus/storage
Arve Knudsen 2332962c4b
Some checks are pending
buf.build / lint and publish (push) Waiting to run
CI / Go tests (push) Waiting to run
CI / More Go tests (push) Waiting to run
CI / Go tests with previous Go version (push) Waiting to run
CI / UI tests (push) Waiting to run
CI / Go tests on Windows (push) Waiting to run
CI / Mixins tests (push) Waiting to run
CI / Build Prometheus for common architectures (push) Waiting to run
CI / Build Prometheus for all architectures (push) Waiting to run
CI / Report status of build Prometheus for all architectures (push) Blocked by required conditions
CI / Check generated parser (push) Waiting to run
CI / golangci-lint (push) Waiting to run
CI / fuzzing (push) Waiting to run
CI / codeql (push) Waiting to run
CI / Publish main branch artifacts (push) Blocked by required conditions
CI / Publish release artefacts (push) Blocked by required conditions
CI / Publish UI on npm Registry (push) Blocked by required conditions
Scorecards supply-chain security / Scorecards analysis (push) Waiting to run
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
..
remote otlptranslator: filter __name__ from OTLP attributes to prevent duplicates (#17917) 2026-01-24 16:44:08 +01:00
buffer.go storage/buffer.go: add ST to sample types and iterators 2026-01-14 13:15:10 +01:00
buffer_test.go add test coverage for buffer.go 2026-01-14 13:15:17 +01:00
errors.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
errors_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
fanout.go fix: appenderV2 mock exemplar appendErr injection before appending it 2026-01-16 10:47:00 +00:00
fanout_test.go tests(teststorage): Close Storage in the helper (#17902) 2026-01-23 08:41:35 +00:00
generic.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
interface.go Merge pull request #17835 from prometheus/bwplotka/a2-storage-support 2026-01-16 13:04:14 +00:00
interface_append.go fix: appenderV2 mock exemplar appendErr injection before appending it 2026-01-16 10:47:00 +00:00
interface_test.go feat(tsdb): new AppenderV2 and AtST interface for chunks 2026-01-14 13:15:09 +01:00
lazy.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
memoized_iterator.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
memoized_iterator_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
merge.go feat(tsdb): new AppenderV2 and AtST interface for chunks 2026-01-14 13:15:09 +01:00
merge_test.go test that ChainSampleIterator passes on the AtST call 2026-01-14 13:15:18 +01:00
noop.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
secondary.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
series.go update ExpandSamples 2026-01-14 13:15:14 +01:00
series_test.go test ListSeriesIterator with ST 2026-01-14 13:15:19 +01:00