Skip to content

Increment proxy metrics by reciprocal of proxy metrics ratio#2780

Merged
CydeWeys merged 1 commit into
google:masterfrom
CydeWeys:proportional-metrics
Jul 2, 2025
Merged

Increment proxy metrics by reciprocal of proxy metrics ratio#2780
CydeWeys merged 1 commit into
google:masterfrom
CydeWeys:proportional-metrics

Conversation

@CydeWeys

@CydeWeys CydeWeys commented Jun 30, 2025

Copy link
Copy Markdown
Member

This is necessary so that the total number of requests/responses adds up correctly even though some fraction of them are only being recorded. It uses stochastic rounding so that the totals add up correctly even when the reciprocal of the ratio isn't an integer.

This is a follow-up to PR #2772.


This change is Reviewable

@CydeWeys
CydeWeys requested a review from jicelhay June 30, 2025 20:11
@CydeWeys
CydeWeys force-pushed the proportional-metrics branch from 7d3945e to 93498d1 Compare June 30, 2025 20:11
This is necessary so that the total number of requests/responses adds up
correctly even though some fraction of them are only being recorded. It uses
stochastic rounding so that the totals add up correctly even when the reciprocal
of the ratio isn't an integer.

This is a follow-up to PR google#2772.
@CydeWeys
CydeWeys force-pushed the proportional-metrics branch from 93498d1 to 7ced6b9 Compare June 30, 2025 20:13

@jicelhay jicelhay left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @CydeWeys)

@CydeWeys
CydeWeys added this pull request to the merge queue Jul 2, 2025
Merged via the queue into google:master with commit b27b077 Jul 2, 2025
9 checks passed
@CydeWeys
CydeWeys deleted the proportional-metrics branch July 2, 2025 17:04
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.

2 participants