-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
feat(ai): improve analytics report #12924
Conversation
How are these counters consumed? |
@hanshuebner , it is a request from @subnetmarco to start tracking ai usage |
Can you add tests, please? |
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.
Thank you for adding the test! The sleep
needs to go, however, to avoid flakiness in high-load CI situations.
proxy_client:close() | ||
proxy_client2:close() | ||
|
||
ngx.sleep(0.1) |
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.
sleep
is an anti-pattern in tests. Consider using helpers.eventually
.
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.
Thanks @hanshuebner
agree and we actually don't need the sleep function so I removed it.
Do notice that the test will fail until #12903 is merged.
Thanks
af37e70
to
8e3711b
Compare
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.
Approved, granted tests pass.
Successfully created cherry-pick PR for |
Summary
This PR will add new AI analytics into the PING anonymous report
Checklist
changelog/unreleased/kong
orskip-changelog
label added on PR if changelog is unnecessary. README.mdIssue reference
Fix #[issue number]