# tracing::instrument - Rust
API documentation for the Rust `instrument` mod in crate `tracing`.
Keywords: rust, rustlang, rust-lang, instrument

# Module tracing::instrument [−] [src]

Attach a span to a `std::future::Future`.

## Structs

Instrumented | A future that has been instrumented with a `tracing` span.
WithDispatch | A future that has been instrumented with a `tracing` subscriber.

## Traits

Instrument | Attaches spans to a `std::future::Future`.
WithSubscriber | Extension trait allowing futures to be instrumented with a `tracing` `Subscriber`.