Skip to content

Replace standalone trace events with span-based tracing hierarchies#109

Merged
ryanoneill merged 1 commit intomainfrom
feature/tracing-spans
Mar 2, 2026
Merged

Replace standalone trace events with span-based tracing hierarchies#109
ryanoneill merged 1 commit intomainfrom
feature/tracing-spans

Conversation

@ryanoneill
Copy link
Owner

Summary

  • Replace standalone tracing::trace!/tracing::debug! calls with tracing::debug_span!/tracing::trace_span! in tick(), dispatch(), process_async_messages(), render(), dispatch_event(), and traced_view()
  • Enables hierarchical grouping of related events within a tick cycle (e.g., render events nested under tick span)
  • All behind #[cfg(feature = "tracing")] — zero cost when feature is disabled
  • Net -2 lines changed

Test plan

  • cargo test — all tests pass
  • cargo clippy -- -D warnings — clean
  • cargo check --features tracing — compiles with tracing enabled
  • cargo check --no-default-features — compiles
  • cargo test --doc — pass

🤖 Generated with Claude Code

tick(), dispatch(), process_async_messages(), render(), dispatch_event(),
and traced_view() now use tracing spans instead of standalone events,
enabling hierarchical grouping of related events within a tick cycle.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 75.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.76%. Comparing base (41832db) to head (d7e6f48).

Files with missing lines Patch % Lines
src/component/mod.rs 33.33% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
+ Coverage   92.65%   92.76%   +0.10%     
==========================================
  Files          99       99              
  Lines        9491     9480      -11     
==========================================
  Hits         8794     8794              
+ Misses        697      686      -11     

☔ 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.

@ryanoneill ryanoneill merged commit 81a0b17 into main Mar 2, 2026
12 of 13 checks passed
@ryanoneill ryanoneill deleted the feature/tracing-spans branch March 2, 2026 04:57
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.

2 participants