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

Don't coerce counters to floats, avoid metrics handles #1144

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

blt
Copy link
Collaborator

@blt blt commented Dec 12, 2024

What does this PR do?

This commit corrects a bug where counter values -- integer -- were
converted to floats leading to odd capture data. I have also adjusted
our use of metrics to always use the macro, avoiding metric handles
that might cause a metric to not expire when it should.

@blt blt added the no-changelog label Dec 12, 2024 — with Graphite App
@blt blt marked this pull request as ready for review December 12, 2024 02:49
@blt blt requested a review from a team as a code owner December 12, 2024 02:49
@blt blt changed the base branch from blt/introduce_k8s_style_millicore_cpu_data to graphite-base/1144 December 12, 2024 03:21
@blt blt force-pushed the graphite-base/1144 branch from 04ee833 to f503e5b Compare December 12, 2024 03:22
@blt blt force-pushed the blt/don_t_coerce_counters_to_floats_avoid_metrics_handles branch from e5d9e60 to 412e106 Compare December 12, 2024 03:22
@blt blt changed the base branch from graphite-base/1144 to main December 12, 2024 03:22
@blt blt force-pushed the blt/don_t_coerce_counters_to_floats_avoid_metrics_handles branch from 412e106 to 39e72c5 Compare December 12, 2024 03:22
blt added 2 commits December 11, 2024 20:01
This commit corrects a bug where counter values -- integer -- were
converted to floats leading to odd capture data. I have also adjusted
our use of metrics to always use the macro, avoiding metric handles
that might cause a metric to not expire when it should.

On this last point I have only audited the generators.

Signed-off-by: Brian L. Troutwine <[email protected]>
Signed-off-by: Brian L. Troutwine <[email protected]>
@blt blt force-pushed the blt/don_t_coerce_counters_to_floats_avoid_metrics_handles branch from 39e72c5 to eb38edd Compare December 12, 2024 04:01
Signed-off-by: Brian L. Troutwine <[email protected]>
@blt blt merged commit 4344486 into main Dec 13, 2024
18 checks passed
@blt blt deleted the blt/don_t_coerce_counters_to_floats_avoid_metrics_handles branch December 13, 2024 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants