Skip to content

[wip]: Exp/Add TimeWindowFilter for controlled logging #550

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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

bhimrazy
Copy link
Collaborator

@bhimrazy bhimrazy commented Apr 11, 2025

Before submitting
  • Was this discussed/agreed via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

This PR tends to experiment and add the time window filter to have the debugger logs between the given time frame.

To be updated and tested...

Usage

# sample.py
from litdata.debugger import enable_tracer
enable_tracer()

# other logics here
# add time in seconds
LITDATA_LOG_START_TIME=5  LITDATA_LOG_END_TIME=10  python sample.py

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in GitHub issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

@bhimrazy bhimrazy changed the title [wip]: Add TimeWindowFilter for controlled logging [wip]: Exp/Add TimeWindowFilter for controlled logging Apr 11, 2025
Copy link

codecov bot commented Apr 11, 2025

Codecov Report

Attention: Patch coverage is 14.81481% with 23 lines in your changes missing coverage. Please review.

Project coverage is 79%. Comparing base (0635369) to head (2137cec).

Additional details and impacted files
@@         Coverage Diff         @@
##           main   #550   +/-   ##
===================================
- Coverage    79%    79%   -0%     
===================================
  Files        40     40           
  Lines      6081   6102   +21     
===================================
+ Hits       4803   4807    +4     
- Misses     1278   1295   +17     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant