[][src]Crate tracing_subscriber

Utilities for implementing and composing tracing subscribers.

tracing is a framework for instrumenting Rust programs to collect scoped, structured, and async-aware diagnostics. The Subscriber trait represents the functionality necessary to collect this trace data. This crate contains tools for composing subscribers out of smaller units of behaviour, and batteries-included implementations of common subscriber functionality.

tracing-subscriber is intended for use by both Subscriber authors and application authors using tracing to instrument their applications.

Re-exports

pub use filter::Filter;
pub use layer::Layer;

Modules

filter

A Layer that enables or disables spans and events based on a set of filtering directives.

layer

A composable abstraction for building Subscribers.

prelude
reload

Wrapper for a Layer to allow it to be dynamically reloaded.

Structs

CurrentSpan

Tracks the currently executing span on a per-thread basis.

Type Definitions

CurrentSpanPerThreadDeprecated