-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: replace log with tracing and use tracing::instrument where useful #316
base: main
Are you sure you want to change the base?
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:WebDavFS
andopendal
backendTreeArchiver
)*_par_*
/readahead*
viarayon
channels
SpanTrace
to RusticError for https://crates.io/crates/tracing-errorspans
andlogging
for aboveimpl
, e.g. inclosures
where we spawn threadsdebug
andtrace
at 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::Path
rustic#1342