Skip to content

Allow passing labels as maps, not just proplists#179

Merged
mkuratczyk merged 1 commit intomasterfrom
allow-maps-of-labels
May 20, 2025
Merged

Allow passing labels as maps, not just proplists#179
mkuratczyk merged 1 commit intomasterfrom
allow-maps-of-labels

Conversation

@mkuratczyk
Copy link
Copy Markdown
Contributor

@mkuratczyk mkuratczyk commented May 20, 2025

#{label1 => value1, labels2 => value2}

becomes equivalent of

[{label1, value1}, {label2, value2}]

```
\#{label1 => value1, labels2 => value2}
```

becomes equivalent of
```
[{label1, value1}, {label2, value2}]
```
@codecov
Copy link
Copy Markdown

codecov Bot commented May 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/model/prometheus_model_helpers.erl 94.31% <100.00%> (+0.06%) ⬆️
test/eunit/prometheus_model_helpers_tests.erl 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@onno-vos-dev
Copy link
Copy Markdown
Member

Nice one!

@mkuratczyk mkuratczyk merged commit f82b084 into master May 20, 2025
4 checks passed
@mkuratczyk mkuratczyk deleted the allow-maps-of-labels branch May 20, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants