-
Notifications
You must be signed in to change notification settings - Fork 463
feat: Upload metrics and logs on proxy side #522
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
Conversation
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.
Pull request overview
This PR adds observability improvements to the proxy side by implementing metrics collection and logging for blob upload operations. The changes enhance monitoring capabilities and debugging by tracking upload success/failure rates and logging detailed upload events.
Key Changes:
- Added success and failure metrics counters for upload_blob and put_tag operations
- Introduced structured logging for blob upload attempts with digest and size information
- Refactored error handling in ReadWriteTransferer to use early returns for better readability
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| lib/dockerregistry/uploads.go | Added error and debug logging for blob upload operations with digest and size context |
| lib/dockerregistry/transfer/rw_transferer.go | Introduced success/failure metrics tracking for uploads, refactored error handling to early return pattern |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Thijmen <[email protected]>
Co-authored-by: Thijmen <[email protected]>
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.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This PR adds observability improvements to the proxy side by implementing metrics collection and logging for blob upload operations. The changes enhance monitoring capabilities and debugging by tracking upload success/failure rates and logging detailed upload events.
Key Changes: