[−][src]Crate tracing_futures
Futures compatibility for tracing
.
tracing
is a framework for instrumenting Rust programs to collect
structured, event-based diagnostic information. This library provides
utilities for instrumenting asynchronous code that uses futures.
Feature flags
This crate provides a number of feature flags that enable compatibility features with other crates in the asynchronous ecosystem:
tokio
: Enables compatibility with thetokio
crate, includingInstrument
andWithSubscriber
implementations fortokio::executor::Executor
,tokio::runtime::Runtime
, andtokio::runtime::current_thread
. Enabled by default.tokio-executor
: Enables compatibility with thetokio-executor
crate, includingInstrument
andWithSubscriber
implementations for types implementingtokio_executor::Executor
. This is intended primarily for use in crates which depend ontokio-executor
rather thantokio
; in general thetokio
feature should be used instead.std-future
: Enables compatibility withstd::future::Future
.futures-01
: Enables compatibility with version 0.1.x of thefutures
crate.
The tokio
and futures-01
features are enabled by default.
Modules
executor |
Structs
Instrumented | A future, stream, or sink that has been instrumented with a |
WithDispatch | A future, stream, sink, or executor that has been instrumented with a
|
Traits
Instrument | Extension trait allowing futures, streams, and skins to be instrumented with
a |
WithSubscriber | Extension trait allowing futures, streams, and skins to be instrumented with
a |