Async Runtime Instrumentation Subscriber
The Async Runtime Instrumentation Subscriber (ari-subscriber) is a tracing-subscriber
optimized for visually debugging Tokio tracing instrumentation.
This crate provides a Layer which writes tracing information to stdout. It colorizes
the traces that result from the tracing instrumentation in Tokio to make identifying them
easier.
Usage
This example will set up a formatting tracing_subscriber::Layer which is then added to the
registry. The output from the task spawned afterwards will be seen in stdout.
use *;
async
A common use case is to use ari-subscriber together with the console-subscriber, which
aggregates the same Tokio tracing instrumentation to be visualized in Tokio Console.
use *;
async
Example output
The beginning of the output of the above program would be:
Comparison with tracing-subscriber
ari-subscriber is built on top of tracing-subscriber and uses its registry (as do the majority
of tracing subscribers). It offers an alternative to the fmt::Subscriber and underlying
fmt::Layer in that crate.
If you are in doubt about which format subscriber to use, pick the one from
tracing-subscriber. It is more flexible and without a doubt, much more performant.
You would only use the ari-subscriber format Layer if you have a specific need to visualize
the tracing instrumentation built into Tokio.
Supported Rust Versions
ari-subscriber is built against the latest stable release. The minimum supported version is
1.65. The current version of ari-subscriber is not guaranteed to build on Rust versions earlier
than the minimum supported version.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion
in ari-subscriber by you, shall be licensed as MIT, without any additional terms or conditions.