Skip to content

Conversation

@pthirun
Copy link
Contributor

@pthirun pthirun commented Sep 16, 2025

Problem:
The metric using the Count stat will suffer from integer overflow in high traffic environments. This will cause the metric to emit negative values.

Solution:
Change the metric type to a Long.

@pthirun pthirun force-pushed the pthiruna/fix-count-overflow branch from 9cb28a2 to 1f6e2bb Compare September 16, 2025 20:22
@pthirun pthirun force-pushed the pthiruna/fix-count-overflow branch from 1f6e2bb to 74be72a Compare September 16, 2025 20:58
@pthirun pthirun changed the title Change count stat variable type from int to long @pthirun Change count stat variable type from int to long Sep 16, 2025
@m-nagarajan m-nagarajan merged commit facb17a into tehuti-io:master Sep 17, 2025
1 check passed
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.

3 participants