tracing-orchestra

Have you ever found it tedious to attach #[tracing::instrument] to each function one by one? That's where #[tracing_orchestra::instrument] comes in!

#[tracing_orchestra::orchestra] allows you to attach what would have been #[tracing::instrument] on each function, to the impl block instead.

Installation

toml [dependencies] tracing-orchestra = "0.1"

How to use

```rust use tracing_orchestra::orchestra;

// default instrument value is here!

[orchestra::(level = "trace")]

impl Foo { fn bar() {} // override tracing::instrument #[tracing::instrument(level = "info")] fn baz() {} } ```

Features

Why "orchestra"?

Because there are a lot of instruments.

License

MIT