-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes a typo and adds a note about the supported field syntax #1232
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great --- I had a couple minor suggestions. Thanks for adding this!
tracing/src/lib.rs
Outdated
//! The [`span!`] and [`event!`] macros as well as the `#[tracing::instrument]` attribute | ||
//! use fairly similar syntax, with some exceptions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you're up for it, it would be nice to make this part of the change on the master
branch as well --- these docs should be about the same, unlike the attribute's docs.
Thanks for the review! |
Oh no please go ahead, sorry I didn't get to it earlier!
…On Thu, Feb 11, 2021 at 10:33 PM Eliza Weisman ***@***.***> wrote:
@lfrancke <https://github.com/lfrancke> mind if I just go ahead and make
the suggested changes here? I'd like to publish a tracing-attributes
release today with #1236 <#1236>,
and it would be nice to get the docs fixes in as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1232 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA57YQTEEEGIAYWM3HN6ALS6RELRANCNFSM4XKWPA5Q>
.
|
Co-authored-by: Eliza Weisman <eliza@buoyant.io>
@@ -192,8 +192,8 @@ | |||
//! | |||
//! ## Using the Macros | |||
//! | |||
//! The [`span!`] and [`event!`] macros use fairly similar syntax, with some | |||
//! exceptions. | |||
//! The [`span!`] and [`event!`] macros as well as the `#[instrument]` attribute |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be nice if #[instrument]
was a link as well, but not a hard blocker.
Fixed - **attributes**: Compiler error when using `#[instrument(err)]` on functions which return `impl Trait` ([#1236]) - Fixed broken match arms in event macros ([#1239]) - Documentation improvements ([#1232]) Thanks to @bkchr and @lfranke for contributing to this release! [#1236]: #1236 [#1239]: #1239 [#1232]: #1232 Signed-off-by: Eliza Weisman <eliza@buoyant.io>
### Fixed - **attributes**: Compiler error when using `#[instrument(err)]` on functions which return `impl Trait` ([#1236]) - Fixed broken match arms in event macros ([#1239]) - Documentation improvements ([#1232]) Thanks to @bkchr and @lfranke for contributing to this release! [#1236]: #1236 [#1239]: #1239 [#1232]: #1232 Signed-off-by: Eliza Weisman <eliza@buoyant.io>
I'm sorry for the super slow responses. I'm swamped at the moment. |
…okio-rs#1232) The `instrument` macro does not explain the syntax that can be used and the main tracing docs only say that this syntax is valid for `span` and `event` macros. Co-authored-by: Eliza Weisman <eliza@buoyant.io>
### Fixed - **attributes**: Compiler error when using `#[instrument(err)]` on functions which return `impl Trait` ([tokio-rs#1236]) - Fixed broken match arms in event macros ([tokio-rs#1239]) - Documentation improvements ([tokio-rs#1232]) Thanks to @bkchr and @lfranke for contributing to this release! [tokio-rs#1236]: tokio-rs#1236 [tokio-rs#1239]: tokio-rs#1239 [tokio-rs#1232]: tokio-rs#1232 Signed-off-by: Eliza Weisman <eliza@buoyant.io>
The
instrument
macro does not explain the syntax that can be used andthe main tracing docs only say that this syntax is valid for
span
andevent
macros.