Crate await_tree

Source
Expand description

Instrument await-tree for actor-based applications.

Structs§

AnyKey
Type-erased key for the Registry.
Config
Configuration for an await-tree registry, which affects the behavior of all await-trees in the registry.
ConfigBuilder
Builder for Config.
Instrumented
The future for InstrumentAwait.
Registry
The registry of multiple await-trees.
Span
A cheaply cloneable span in the await-tree.
Tree
An await-tree for a task.
TreeRoot
The root of an await-tree.

Enums§

ConfigBuilderError
Error type for ConfigBuilder

Traits§

InstrumentAwait
Attach spans to a future to be traced in the await-tree.
Key
A key that can be used to identify a task and its await-tree in the Registry.

Functions§

current_tree
Get the await-tree of current task. Returns None if we’re not instrumented.
spawn
Spawns a new asynchronous task instrumented with the given root Span, returning a JoinHandle for it.
spawn_anonymous
Spawns a new asynchronous task instrumented with the given root Span, returning a JoinHandle for it.