Skip to content

[FEATURE] Periodically log the counters to the terminal #341

@badmonster0

Description

@badmonster0

Refer to #340 on the counters
sources_update_stats

The counter keeps track of the following total stats

We want to periodically log the counters to terminal as well, this is how we are currently logging now

let mut interval = tokio::time::interval(REPORT_INTERVAL);
interval.set_missed_tick_behavior(MissedTickBehavior::Delay);
interval.tick().await;
loop {
interval.tick().await;
report_stats();
}

If you have some other ideas of how to log the counters, please suggest as well :) we are open to suggestions and happy to discuss the design and work together!


To contributors ❤️: Please leave a comment I'm working on this if you decide to take it - to better communicate with other contributors :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions