-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix(logs): improve timestamp precision in container logs #27696
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: MayorFaj <[email protected]>
Signed-off-by: MayorFaj <[email protected]>
Signed-off-by: MayorFaj <[email protected]>
e1e955d to
e28d1e5
Compare
|
if we are following docker behavior, then its likely not a bug. else, LGTM at quick glance. |
At least in the Docker API v1.51 running on my local machine, I get nanosecond precision. |
Honny1
left a comment
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, LGTM.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Honny1, MayorFaj The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/packit retest-failed |
Checklist
Ensure you have completed the following checklist for your pull request to be reviewed:
commits. (
git commit -s). (If needed, usegit commit -s --amend). The author email must matchthe sign-off email address. See CONTRIBUTING.md
for more information.
Fixes: #27691in commit message (if applicable)make validatepr(format/lint checks)Noneif no user-facing changes)Does this PR introduce a user-facing change?
Fixes #27691
This pull request updates the timestamp formatting in container logs to provide higher precision.
pkg/api/handlers/compat/containers_logs.go, the timestamp format for log entries was changed fromtime.RFC3339totime.RFC3339Nano, allowing log timestamps to include nanosecond precision.