Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overload Base.getindex(::Family, labels) #13

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Conversation

fredrikekre
Copy link
Owner

This patch adds an overload to Base.getindex for the Family collector to have the same meaning as Prometheus.labels. family[labels] is equivalent to Prometheus.labels(family, labels)

This patch adds an overload to `Base.getindex` for the `Family`
collector to have the same meaning as `Prometheus.labels`.
`family[labels]` is equivalent to `Prometheus.labels(family, labels)`
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b6ed664) 97.58% compared to head (6698fed) 97.59%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
+ Coverage   97.58%   97.59%   +0.01%     
==========================================
  Files           3        3              
  Lines         455      457       +2     
==========================================
+ Hits          444      446       +2     
  Misses         11       11              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fredrikekre fredrikekre merged commit d0d19ae into master Nov 29, 2023
10 checks passed
@fredrikekre fredrikekre deleted the fe/getindex branch November 29, 2023 09:49
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.

1 participant