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

feat: logs enhancements #2320

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

feat: logs enhancements #2320

wants to merge 3 commits into from

Conversation

veds-g
Copy link
Contributor

@veds-g veds-g commented Jan 9, 2025

enhanced numaflow logs to:

  • added monospacing

  • allow wrapping lines (preventing horizontal scroll)

image
  • ability to download logs (format - "{pod_name}-{container_name}.txt")
image
  • ability to add / remove timestamps from the beginning of logs
image image
  • add filters for log levels (info, error, warn, debug)
image

Signed-off-by: veds-g <[email protected]>
@veds-g veds-g requested review from whynowy and vigith as code owners January 9, 2025 23:02
@veds-g veds-g requested review from adarsh0728 and mshakira January 9, 2025 23:03
@vigith
Copy link
Member

vigith commented Jan 9, 2025

awesome.. please make sure default is "single line" log (not wrap)

Signed-off-by: veds-g <[email protected]>
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.10%. Comparing base (cd1fcb4) to head (9500e3a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2320      +/-   ##
==========================================
- Coverage   67.16%   67.10%   -0.07%     
==========================================
  Files         351      351              
  Lines       45273    45269       -4     
==========================================
- Hits        30408    30377      -31     
- Misses      13786    13824      +38     
+ Partials     1079     1068      -11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

let startIndex = 0;
if (enableTimestamp) {
if (type === "monoVertex") {
if (log?.includes("ERROR") || log?.includes("DEBUG")) startIndex = 28;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can we define constants for log levels (eg: LOG_LEVEL_ERROR)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants