mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 07:20:35 +00:00

## Motivation A recent upstream change to `tokio-test` (tokio-rs/tokio#1728) removed the `MockTask` API in favour of a more ergonomic `task::spawn` API. This broke our tests for `tracing-futures` and `tracing-attributes` `std::future` compatibility, which depend on `tokio-test` from Git. ## Solution This branch updates these tests to use the new API, which *is* much nicer. This should fix nightly CI. Signed-off-by: Eliza Weisman <eliza@buoyant.io>
tracing-futures
Utilities for instrumenting futures-based code with tracing
.
Overview
tracing
is a framework for instrumenting Rust programs to collect
structured, event-based diagnostic information. This crate provides utilities
for using tracing
to instrument asynchronous code written using futures and
async/await.
The crate provides the following traits:
-
Instrument
allows atracing
span to be attached to a future, sink, stream, or executor. -
WithSubscriber
allows atracing
Subscriber
to be attached to a future, sink, stream, or executor.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Tracing by you, shall be licensed as MIT, without any additional terms or conditions.