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.
- Config
Builder - 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.
- Tree
Root - The root of an await-tree.
Enums§
- Config
Builder Error - Error type for ConfigBuilder
Traits§
- Instrument
Await - 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 aJoinHandle
for it. - spawn_
anonymous - Spawns a new asynchronous task instrumented with the given root
Span
, returning aJoinHandle
for it.