Skip to content

Conversation

@lym953
Copy link
Contributor

@lym953 lym953 commented Dec 22, 2025

What does this PR do?

Right now buffer length is hard coded to 2. This PR allows (and requires) a custom buffer length to be set.

Motivation

When we use this stats concentrator in Lambda extension, we see undercount of 2–5% for hits metric for high volume scenarios. When we changed buffer length from 2 to 1, undercount improved a lot, to 0.1–0.7%. While we are still investigating the cause of undercount, we want to be able to set custom buffer length to remediate the issue to some extent.

Additional Notes

Let me know if you prefer to keep the current API and create a new API with the added param.

How to test the change?

Still passing the existing tests.

@lym953 lym953 requested a review from a team as a code owner December 22, 2025 22:08
@lym953 lym953 marked this pull request as draft December 23, 2025 21:41
@lym953
Copy link
Contributor Author

lym953 commented Dec 23, 2025

Hold on. We are validating if buffer len really impacts undercount.

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