Crate tracing_helpers

Source
Expand description

Helpers for using the tracing crate more effectively.

In particular, this includes extension traits to make it easier to pass errors to tracing events. The events can take a dyn Error, but getting a dyn Error from an arbitrary error type requires casting.

Hopefully this crate will be short lived as tracing ergonomics continue to improve.

Modules§

formatter
Formatter for use with tracing crate.

Traits§

AnyhowValueExt
Extension trait to make it easy to trace anyhow errors.
ErrorValueExt
Extension trait to make it easy to trace errors.