-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
feat(autopilot): SDK update detector logging #105384
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(autopilot): SDK update detector logging #105384
Conversation
|
|
||
| updates_list = [update for update in updates_list if len(update["suggestions"]) > 0] | ||
|
|
||
| logger.warning("updates_list: %s", updates_list) |
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.
Debug logging using WARNING level in production task
The logger.warning("updates_list: %s", updates_list) statement logs the entire updates list at WARNING level. This appears to be debug/diagnostic code that is inappropriate for production. WARNING level logs are typically monitored and may trigger alerts. Since this task runs every 5 minutes for all allowlisted organizations, this will generate significant log volume with potentially large data structures containing SDK names, versions, and project IDs. Consider using logger.debug or logger.info instead, or removing it if the metrics call on the next line provides sufficient observability.
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.
info logs are filtered out. for version, we want it to be visible
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #105384 +/- ##
===========================================
+ Coverage 80.24% 80.57% +0.33%
===========================================
Files 9433 9440 +7
Lines 404618 404711 +93
Branches 25680 25680
===========================================
+ Hits 324668 326087 +1419
+ Misses 79481 78155 -1326
Partials 469 469 |
Add first POC of a detector for Autopilot, that detects outdated SDKs.
This version simply emits metrics for checking the system's behavior.