Skip to content

Support continuous live-check#1066

Merged
jerbly merged 7 commits intoopen-telemetry:mainfrom
jerbly:continuous-mode
Dec 11, 2025
Merged

Support continuous live-check#1066
jerbly merged 7 commits intoopen-telemetry:mainfrom
jerbly:continuous-mode

Conversation

@jerbly
Copy link
Contributor

@jerbly jerbly commented Dec 10, 2025

Now that we can emit findings as log_records, we can support continuously running live-check. These changes aid this mode of operation:

  • --inactivity-timeout=0 -> If this is set to zero then it never times out
  • --output=none -> if this is set to none then no template engine is loaded and nothing is rendered out
  • --no-stats -> if this is set then statistics are not accumulated over the running time of live-check which has the potential to otherwise store a lot of info in memory.

We may want a convenience option to set all these up with one flag but I'm trying not to add more options. These individual tweaks have their own merit independently.

@jerbly jerbly requested a review from a team as a code owner December 10, 2025 03:37
@codecov
Copy link

codecov bot commented Dec 10, 2025

Codecov Report

❌ Patch coverage is 98.40000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 79.4%. Comparing base (4c5496c) to head (69e6b60).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
crates/weaver_live_check/src/stats.rs 98.4% 2 Missing ⚠️
Additional details and impacted files
@@          Coverage Diff          @@
##            main   #1066   +/-   ##
=====================================
  Coverage   79.3%   79.4%           
=====================================
  Files         98      99    +1     
  Lines       7323    7346   +23     
=====================================
+ Hits        5812    5835   +23     
  Misses      1511    1511           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jsuereth jsuereth moved this to To consider for the next release in OTel Weaver Project Dec 10, 2025
@jsuereth jsuereth mentioned this pull request Dec 10, 2025

impl LiveCheckStatistics {
/// Add a live check result to the stats
pub fn maybe_add_live_check_result(&mut self, live_check_result: Option<&LiveCheckResult>) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! I like this division

@jerbly jerbly merged commit e32adbf into open-telemetry:main Dec 11, 2025
23 checks passed
@github-project-automation github-project-automation bot moved this from To consider for the next release to Done in OTel Weaver Project Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants