-
Notifications
You must be signed in to change notification settings - Fork 2k
chore(buffers): Rework gauge metric handling #23561
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
b0703f7
Move `update_and_get` within `update_buffer_gauge`
bruceg 5cff889
Break out counter updating from emitting gauges
bruceg b8731fd
Break up counter updating and gauge emission
bruceg 69c891f
Move updating buffer counts into buffer usage data module
bruceg 9cc4d35
Use u64 values in the buffer counters map
bruceg 9b41787
Add and subtract in multithread update test
bruceg f7d343f
Use `update_and_get` to update category metrics atomics as well
bruceg 95a9c77
Add helper function to safely convert u64 to i64
bruceg 0fe85b5
Move current buffer size counters into `BufferUsageData`
bruceg 045dcc8
Rename `update_and_get` to `update_counter` dropping the return
bruceg 482bb5c
Open code `fn emit_counter_gauge` into callers
bruceg a3a78cb
Add missing `buffer_discarded_bytes_total` counter
bruceg 6ef2d64
Add `buffer_id` to `BufferCreated` event
bruceg 353d0bb
Drop clamping u64 values to "safe" floats
bruceg 376dcde
Add missing `stage` to discarded event counters
bruceg 185622b
Merge branch 'master' into bruceg/rework-buffer-counters
pront 8a26a40
Only do atomic increments if the counts are non-zero
bruceg b840c9e
Add test to ensure atomic updates obey clamping
bruceg c5ecfcb
Warn when we overflow or underflow a counter value
bruceg d04cbf4
Fix increment test values
bruceg 82b22f4
Use "relaxed" ordering for all counter updates
bruceg de17764
Merge branch 'master' into bruceg/rework-buffer-counters
pront File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.