Crate await_tree
source ·Expand description
Instrument await-tree for actor-based applications.
Structs§
- Type-erased key for the
Registry
. - Configuration for an await-tree registry, which affects the behavior of all await-trees in the registry.
- Builder for
Config
. - The future for
InstrumentAwait
. - The registry of multiple await-trees.
- A cheaply cloneable span in the await-tree.
- An await-tree for a task.
- The root of an await-tree.
Enums§
- Error type for ConfigBuilder
Traits§
- Attach spans to a future to be traced in the await-tree.
- A key that can be used to identify a task and its await-tree in the
Registry
.
Functions§
- Get the await-tree of current task. Returns
None
if we’re not instrumented. - Spawns a new asynchronous task instrumented with the given root
Span
, returning aJoinHandle
for it. - Spawns a new asynchronous task instrumented with the given root
Span
, returning aJoinHandle
for it.