Crate forrust_fire_tracing

Source
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.
EventInfo
Information about an event that has just started.
ForestFireSubscriber
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 through field::Iter.

Traits§

EventProvider
Definition of how to create and manage events captured by ForestFireSubscriber.

Functions§

nothread_local_run_forest
Runs a function with a ForestFireSubscriber using the given EventProvider.
nothread_run_forest_ret
Runs a function with a ForestFireSubscriber using the given EventProvider, allowing returning values.