async-rs / async-log

Async tracing capabilities for the log crate
Apache License 2.0
98 stars 5 forks source link

Change #[instrument] to #[span] #3

Closed yoshuawuyts closed 5 years ago

yoshuawuyts commented 5 years ago

Feature Request

Summary

Change the #[instrument] macro to #[span].

Motivation

This reduces the API surface substantially, and should make this crate easier to use.

Reference-level explanation

We likely should use https://github.com/dtolnay/proc-macro-hack

Unresolved Questions

None.

yoshuawuyts commented 5 years ago

Talked to @dtolnay in person today, and this is not possible with the current macro structure.