feat: replace log with tracing and use tracing::instrument where useful#316
feat: replace log with tracing and use tracing::instrument where useful#316
Conversation
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
|
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
|
While I agree that we might want to migrate from |
|
Hmm, I don't understand, why would that be related to an architectural decision? |
No downside. I just don't see any benefit we currently can get. That might change and |
|
(Sorry, I accidentally edited your comment instead of answering! 😅) I collected all the advantages in here: #315 The benefits are structured logging, the |
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
- async - threaded - par_ - send on channels Missing: - create fn from closures that use above and instrument them for smaller scopes Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
f7d1e0d to
e95b61b
Compare
|
I started out to instrument the functions, that are related to:
Follow up: I think what can be useful, is also to create |
Signed-off-by: simonsan <14062932+simonsan@users.noreply.github.com>
Fixes #315
TODO:
tracing::instrument, candidates:WebDavFSandopendalbackendTreeArchiver)*_par_*/readahead*viarayonchannelsSpanTraceto RusticError for https://crates.io/crates/tracing-errorspansandloggingfor aboveimpl, e.g. inclosureswhere we spawn threadsdebugandtraceat some more sensible places to make diagnosing backend issues more easy (ref.: Not enough context to root-cause S3 access error #346 )rustic-rs?Application::Pathrustic#1342