Commit 9f414f2
Add tracing instrumentation to Component trait
Adds feature-gated tracing to the Component trait's default methods:
- dispatch_event: logs component type name at debug level when a message
is produced, and traces output presence at trace level
- traced_view: new default method that wraps view() with trace-level
logging of component type name and render area dimensions
All instrumentation is behind #[cfg(feature = "tracing")] with zero
cost when the feature is disabled. This brings component-level
observability alongside the existing runtime/command tracing points.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent ff80ab6 commit 9f414f2
1 file changed
+32
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
336 | 355 | | |
337 | 356 | | |
338 | 357 | | |
| |||
356 | 375 | | |
357 | 376 | | |
358 | 377 | | |
359 | | - | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
360 | 391 | | |
361 | 392 | | |
362 | 393 | | |
| |||
0 commit comments