Expand description
Strut
Backend in Rust: convenient and configurable with Strut. 🏗️
- Strut is a Rust application scaffold that aims to simplify common backend chores.
- The documentation is available on the ➡️ homepage.
§Crate strut-tracing
⚠️ Internal crate
Unless you know exactly what you are doing, there is probably no need to directly depend on this crate.
This crate is a convenience layer around tracing crate.
Structs§
- Registry
- A shared, reusable store for spans.
- Tracing
Config - Represents the application-level configuration section that covers everything
related to pre-configuring the formatted layer
provided by the
tracingcrate. In essence, this is the application logging configuration.
Enums§
- Format
Flavor - Represents a particular preset of configuration for the
event formatter used by the
formatted
Subscriberof thetracing_subscribercrate. - Verbosity
- A thin abstraction around the
tracingcrate’sLevelFilter, introduced to provide deserialization.
Traits§
- Subscriber
- Partly re-exports the public API of
tracing_*for convenience. Trait representing the functions required to collect trace data. - Subscriber
Ext - Extension trait adding a
with(Layer)combinator toSubscribers. - Subscriber
Init Ext - Extension trait adding utility methods for subscriber initialization.
Functions§
- make_
layer - Creates a formatted
Layerbased on the given config.