Skip to content

Conversation

mheffner
Copy link
Contributor

Gauges report a snapshot value once per interval, so we don't need to report on every change. There shouldn't be a difference between reporting N times per interval and selecting one vs. simply reporting once. This should reduce overhead of reporting for gauges with high-frequency change rates.

@mheffner mheffner added the type: chore work needed to keep the product and development running smoothly label Dec 22, 2021
@mheffner mheffner requested a review from a team as a code owner December 22, 2021 19:06
Copy link
Contributor

@paulo paulo left a comment

Choose a reason for hiding this comment

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

Good idea! I wonder if it would be worth it to make this behaviour configurable, so low load apps would be able to have more granular data while high load apps get sparser data without impacting perf.

@mheffner
Copy link
Contributor Author

Good idea! I wonder if it would be worth it to make this behaviour configurable, so low load apps would be able to have more granular data while high load apps get sparser data without impacting perf.

So gauges still report once per interval, so I don't know if reporting more frequently provides any additional granularity. If an application wants to record per-operation granular metrics it is probably better to use the Sample() or Distribution() type metrics.

@mheffner mheffner merged commit 1d5554b into master Dec 23, 2021
@mheffner mheffner deleted the chore/less-reporting branch December 23, 2021 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants