Closed dillonrg closed 1 month ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 87.91%. Comparing base (
3ce5335
) to head (f5ce4e2
). Report is 18 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
whoops totally missed that this was already merged, sorry!
Context The
tracing
crate enables more robust instrumentation of Rust programs compared to basic logging. With this patch, we introduce thetracing
crate into AKD and only enable it when thetracing
feature is specified. By default, the feature is disabled and we continue to leverage basic logging.In addition to adding
tracing
based logging and instrumentation throughout theakd
lib (i.e. notakd_core
), various grammatical and organizational improvements were made in areas where tracing was being added. Notably, thelog_metrics
functions which exist throughout the storage layer were updated to simply log withinfo
level instead of taking an argument to specify the level. Rationale being that thelog_metrics
functions are only called when theruntime_metrics
feature is enabled andinfo
is a fair median to assume.Testing Since no major functional changes were made, the changes were tested via existing automated tests with various different feature flags being passed to toggle
tracing
on and off.