rustic_core
rustic_core copied to clipboard
feat: replace log with tracing and use tracing::instrument where useful
Fixes #315
TODO:
- [x] replace log with tracing
- [x] annotate functions/methods with
tracing::instrument, candidates:- async, e.g.
WebDavFSandopendalbackend - in general multithreading (
TreeArchiver) - contain
*_par_*/readahead*viarayon - send/recv data on
channels
- async, e.g.
- [ ] add
SpanTraceto RusticError for https://crates.io/crates/tracing-error - [ ] add more fine-grained
spansandloggingfor aboveimpl, e.g. inclosureswhere we spawn threads - [ ] add
debugandtraceat some more sensible places to make diagnosing backend issues more easy (ref.: https://github.com/rustic-rs/rustic_core/pull/346 ) - [ ] what else to prepare, that we can use the instrumented library in
rustic-rs?- [ ] See https://github.com/rustic-rs/rustic/pull/1342