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

Nullify noLabels in StatefulMetric during clear() to prevent no-label inc to stop working #972

Merged
merged 1 commit into from
Sep 7, 2024

Conversation

iaco86
Copy link
Contributor

@iaco86 iaco86 commented Jul 19, 2024

Fixes #971

  • nullified volatile noLabels variable on clear()
  • enhanced testClearNoLabels

@fstab @dhoard @tomwilkie

…s increase to stop working

Signed-off-by: Iacopo Pace <[email protected]>
@dhoard dhoard merged commit b2db709 into prometheus:main Sep 7, 2024
2 checks passed
@dhoard
Copy link
Collaborator

dhoard commented Sep 7, 2024

@iaco86 Thanks for the PR!

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.

StatefulMetric clear() invocation causes noLabels increase to stop reporting on collect()
2 participants