slawlor / ractor

Rust actor framework
MIT License
1.38k stars 69 forks source link

Name tasks if the the unstable tokio tracing feature is enabled. #104

Closed jsgf closed 1 year ago

jsgf commented 1 year ago

If --cfg tokio_unstable is set in RUSTFLAGS, then allow --feature tracing. This enables the task::Builder API, which allows tasks to be named.

We use that here to name them after the actor name, which makes the output in tokio-console much more readable.

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.04 :tada:

Comparison is base (03996bd) 79.17% compared to head (af4b4d0) 79.22%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #104 +/- ## ========================================== + Coverage 79.17% 79.22% +0.04% ========================================== Files 49 49 Lines 8625 8645 +20 ========================================== + Hits 6829 6849 +20 Misses 1796 1796 ``` | [Impacted Files](https://app.codecov.io/gh/slawlor/ractor/pull/104?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sean+Lawlor) | Coverage Δ | | |---|---|---| | [ractor/src/actor/mod.rs](https://app.codecov.io/gh/slawlor/ractor/pull/104?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sean+Lawlor#diff-cmFjdG9yL3NyYy9hY3Rvci9tb2QucnM=) | `90.00% <100.00%> (ø)` | | | [ractor/src/concurrency.rs](https://app.codecov.io/gh/slawlor/ractor/pull/104?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sean+Lawlor#diff-cmFjdG9yL3NyYy9jb25jdXJyZW5jeS5ycw==) | `98.03% <100.00%> (+1.26%)` | :arrow_up: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/slawlor/ractor/pull/104/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Sean+Lawlor)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.