When you have all the functions that make sense to instrument inside an impl block, it would be nice to have a single #[instrument] on the whole block instead of every function.
Proposal
When #[instrument] is put on, an impl block (or a trait implementation), for each function inside this block without an #[instrument] attribute on its own, apply the attribute.
Feature Request
Crates
tracing
Motivation
When you have all the functions that make sense to instrument inside an
impl
block, it would be nice to have a single#[instrument]
on the whole block instead of every function.Proposal
When
#[instrument]
is put on, animpl
block (or a trait implementation), for each function inside this block without an#[instrument]
attribute on its own, apply the attribute.Alternatives
Keep manually duplicating it on each function.