-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Skip metric increment during existence check #12763
Conversation
Signed-off-by: Vinayak Kadam <kadamvinayak03@gmail.com>
Signed-off-by: Vinayak Kadam <kadamvinayak03@gmail.com>
changelog/12763.txt
Outdated
@@ -0,0 +1,3 @@ | |||
```release-note: bug | |||
COMPONENT: Telemetry data getting counted twice |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
COMPONENT: Telemetry data getting counted twice | |
core: Fix double counting for "route" metrics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated changelog text
Signed-off-by: Vinayak Kadam <kadamvinayak03@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @vinayak03 , thank you for the contribution!
Lgtm!
Hi @vinayak03 - CircleCI has been a bit squirrelly as of late, and isn't wanting to report the automated test results to GitHub. Would you be willing to push an empty commit in order to get the tests nudged forward, so we can get this merged? Thanks in advance for your patience! |
Hi |
The metric are counted twice on single API call because we are calling the same function during existence check as well as update/write phase. This PR is simply adding check as to when we should record the metric.
I tried adding a unit test however since we are directly using the metrics in router, I was not able to add it.
Closes #12060
Signed-off-by: Vinayak Kadam kadamvinayak03@gmail.com