use tracing
crate for logging
#315
Labels
A-dx
Area: Related to Developer Experience
A-errors
Area: error handling needs improvement
A-instrumentation
Area: Related to tracing, instrumentation, metrics
C-enhancement
Category: New feature or request
I think it would be nice to use the
tracing
crate throughoutrustic_core
, as we could make use of it also regarding the#[instrument]
macro. Giving us an easy opportunity to track calls into methods/functions as seen here: https://github.com/tokio-rs/tracing?tab=readme-ov-file#in-librariesThis will make debugging much easier for downstream users e.g. in
rustic
, and we will also get much more information and thus insight into (future?) asynchronous code.The nice thing about the migration: it uses the same
log
facade, so we can just start annotating methods withtracing::instrument
and otherwise replacelog::
withtracing::
.Structured logging
Span-based Logging and Context Propagation
Log Filtering
Instrumentation
Extensibility with Subscribers
The text was updated successfully, but these errors were encountered: