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

Optimise handling of integers and floats for counters, gauges, summaries #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

NelsonVides
Copy link
Member

Note too that gauges could take the value undefined to effectively block changes until explicitly set. This was implemented, but not tested, and in some edge-cases it would be buggy.

Split from #173

Copy link

codecov bot commented Mar 5, 2025

Codecov Report

Attention: Patch coverage is 94.20290% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/metrics/prometheus_counter.erl 66.66% 2 Missing ⚠️
src/metrics/prometheus_gauge.erl 92.85% 2 Missing ⚠️
Files with missing lines Coverage Δ
src/metrics/prometheus_summary.erl 96.15% <100.00%> (+0.15%) ⬆️
test/eunit/metric/prometheus_gauge_tests.erl 97.76% <100.00%> (+0.22%) ⬆️
src/metrics/prometheus_counter.erl 92.30% <66.66%> (-2.02%) ⬇️
src/metrics/prometheus_gauge.erl 96.55% <92.85%> (+2.61%) ⬆️
🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Note too that gauges could take the value `undefined` to effectively
block changes until explicitly set. This was implemented, but not
tested, and in some edge-cases it would be buggy.
@NelsonVides NelsonVides force-pushed the integer_float_handling branch from e90edef to de0e1be Compare March 9, 2025 09:33
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