Expand description
Tracing integration for forrust_fire_tree
.
The main focus of this crate is ForestFireSubscriber
, which is able to build a tree of tracing
events & spans. Since it is based on ForestFire
which allows inserting nodes into any part
of the tree, ForestFireSubscriber
is capable of tracing multithreaded applications (note that
the state is behind a mutex, so some locking will be required!).
ForestFireSubscriber
is generic over the data it collects from tracing events; the event
creation mechanism is specified by your EventProvider
implementation, or you can simply
use the built-in LogEventProvider
which will collect most of the data you’d likely want
from tracing (save for timing information).
Modules§
- providers
- Utilities for- and implementions of
EventProvider
.
Structs§
- AshTrayce
- The finished-up and traversable tree returned by
ForestFireSubscriber::burn
. - Event
Info - Information about an event that has just started.
- Forest
Fire Subscriber - An implementation of
tracing::Subscriber
which records the structured tracing data into an equally structured tree.
Enums§
- Fields
- A collection of fields, either provided through a full
field::FieldSet
or throughfield::Iter
.
Traits§
- Event
Provider - Definition of how to create and manage events captured by
ForestFireSubscriber
.
Functions§
- nothread_
local_ run_ forest - Runs a function with a
ForestFireSubscriber
using the givenEventProvider
. - nothread_
run_ forest_ ret - Runs a function with a
ForestFireSubscriber
using the givenEventProvider
, allowing returning values.