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

fix: Use counters instead of gauges #29291

Merged
merged 1 commit into from
Oct 14, 2021
Merged

fix: Use counters instead of gauges #29291

merged 1 commit into from
Oct 14, 2021

Conversation

loewenheim
Copy link
Contributor

Also a bonus fix for a bug that the linter just noticed.

@loewenheim loewenheim merged commit 8981ce5 into master Oct 14, 2021
@loewenheim loewenheim deleted the fix/counters branch October 14, 2021 08:52
@@ -282,7 +282,7 @@ def _do_symbolicate_event(
# check whether the event is in the wrong queue and if so, move it to the other one.
# we do this at most SYMBOLICATOR_MAX_QUEUE_SWITCHES times.
if queue_switches >= SYMBOLICATOR_MAX_QUEUE_SWITCHES:
metrics.gauge("tasks.store.symbolicate_event.low_priority.max_queue_switches", 1)
metrics.incr("tasks.store.symbolicate_event.low_priority.max_queue_switches", sample_rate=1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these weren't emitted yet so nothing happened. but just changing the data type of a metrics is usually not something one can just do. no idea how datadog deals with this. just to keep in mind next time 😄

@github-actions github-actions bot locked and limited conversation to collaborators Oct 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants