Skip to content
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

Improve Logs UX #208

Merged
merged 4 commits into from
Feb 7, 2025
Merged

Improve Logs UX #208

merged 4 commits into from
Feb 7, 2025

Conversation

ctrox
Copy link
Contributor

@ctrox ctrox commented Feb 7, 2025

  • Increases default look-back to match retention
  • Add error messages when requested logs exceed retention
  • Adds flags to get logs for absolute time ranges
  • Add error message for when no logs have been found

@ctrox ctrox force-pushed the logs-ux branch 2 times, most recently from cfc8fd4 to 516e075 Compare February 7, 2025 14:08
Copy link
Contributor

@thirdeyenick thirdeyenick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

ctrox added 4 commits February 7, 2025 15:35
The logs retention is 30 days so we should always try to look back
further to improve the user experience. This does not impact query
performance if there are recent logs found. Going back 20+ days takes a
few seconds but it's still acceptable.
This adds two new flags that when set, override the since parameter to
only show logs in this absolute time frame. This can be useful when
looking for logs beyond the (server-side) line limit of 5000 lines.
To achieve this the log output has been wrapped with a new interface
that needs to implement LineCount(). This is also useful in the tests
where we previously counted the lines in a different way.
@ctrox ctrox merged commit b84866d into main Feb 7, 2025
2 checks passed
@ctrox ctrox deleted the logs-ux branch February 7, 2025 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants