AgIsoStack-rs icon indicating copy to clipboard operation
AgIsoStack-rs copied to clipboard

Spike - investigate how to enable/disable tracing on a per-module basis

Open Notgnoshi opened this issue 7 months ago • 0 comments

Motivated by https://github.com/Open-Agriculture/AgIsoStack-rs/pull/12#issuecomment-1799028872

Having optional tracing is great, but as the project grows, adding tracing around everything will get quite verbose. We should find a way to let a developer enable tracing only for the modules they want.

We'd probably want to use https://docs.rs/tracing-subscriber/0.3.18/tracing_subscriber/#layers-and-filters for this?

Would this be defined entirely in user code? Or are there hooks we have to provide in the library itself? Regardless, we'll want to provide documentation to show users/developers how to adjust things.

Notgnoshi avatar Nov 19 '23 16:11 Notgnoshi