Skip to content

Commit

Permalink
Update Rust crate tracing to 0.1.39 (#346)
Browse files Browse the repository at this point in the history
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [tracing](https://tokio.rs) ([source](https://togithub.com/tokio-rs/tracing)) | dependencies | patch | `0.1.37` -> `0.1.39` |

---

### ⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.

---

### Release Notes

<details>
<summary>tokio-rs/tracing (tracing)</summary>

### [`v0.1.39`](https://togithub.com/tokio-rs/tracing/releases/tag/tracing-0.1.39): tracing 0.1.39

[Compare Source](https://togithub.com/tokio-rs/tracing/compare/tracing-0.1.38...tracing-0.1.39)

This release adds several additional features to the `tracing` macros. In
addition, it updates the `tracing-core` dependency to [v0.1.32][core-0.1.32] and
the `tracing-attributes` dependency to [v0.1.27][attrs-0.1.27].

##### Added

-   Allow constant field names in macros ([#&#8203;2617])
-   Allow setting event names in macros ([#&#8203;2699])
-   **core**: Allow `ValueSet`s of any length ([#&#8203;2508])

##### Changed

-   `tracing-attributes`: updated to [0.1.27][attrs-0.1.27]
-   `tracing-core`: updated to [0.1.32][core-0.1.32]
-   **attributes**: Bump minimum version of proc-macro2 to 1.0.60 ([#&#8203;2732])
-   **attributes**: Generate less dead code for async block return type hint ([#&#8203;2709])

##### Fixed

-   Use fully qualified names in macros for items exported from std prelude
    ([#&#8203;2621], [#&#8203;2757])
-   **attributes**: Allow \[`clippy::let_with_type_underscore`] in macro-generated
    code (\[[#&#8203;2609](https://togithub.com/tokio-rs/tracing/issues/2609)])
-   **attributes**: Allow `unknown_lints` in macro-generated code ([#&#8203;2626])
-   **attributes**: Fix a compilation error in `#[instrument]` when the `"log"`
    feature is enabled ([#&#8203;2599])

##### Documented

-   Add `axum-insights` to relevant crates. ([#&#8203;2713])
-   Fix link to RAI pattern crate documentation (\[[#&#8203;2612](https://togithub.com/tokio-rs/tracing/issues/2612)])
-   Fix docs typos and warnings ([#&#8203;2581])
-   Add `clippy-tracing` to related crates ([#&#8203;2628])
-   Add `tracing-cloudwatch` to related crates ([#&#8203;2667])
-   Fix deadlink to `tracing-etw` repo ([#&#8203;2602])

[#&#8203;2617]: https://togithub.com/tokio-rs/tracing/pull/2617

[#&#8203;2699]: https://togithub.com/tokio-rs/tracing/pull/2699

[#&#8203;2508]: https://togithub.com/tokio-rs/tracing/pull/2508

[#&#8203;2621]: https://togithub.com/tokio-rs/tracing/pull/2621

[#&#8203;2713]: https://togithub.com/tokio-rs/tracing/pull/2713

[#&#8203;2581]: https://togithub.com/tokio-rs/tracing/pull/2581

[#&#8203;2628]: https://togithub.com/tokio-rs/tracing/pull/2628

[#&#8203;2667]: https://togithub.com/tokio-rs/tracing/pull/2667

[#&#8203;2602]: https://togithub.com/tokio-rs/tracing/pull/2602

[#&#8203;2626]: https://togithub.com/tokio-rs/tracing/pull/2626

[#&#8203;2757]: https://togithub.com/tokio-rs/tracing/pull/2757

[#&#8203;2732]: https://togithub.com/tokio-rs/tracing/pull/2732

[#&#8203;2709]: https://togithub.com/tokio-rs/tracing/pull/2709

[#&#8203;2599]: https://togithub.com/tokio-rs/tracing/pull/2599

[`let_with_type_underscore`]: http://rust-lang.github.io/rust-clippy/rust-1.70.0/index.html#let_with_type_underscore

[attrs-0.1.27]: https://togithub.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.27

[core-0.1.32]: https://togithub.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.32

### [`v0.1.38`](https://togithub.com/tokio-rs/tracing/releases/tag/tracing-0.1.38): tracing 0.1.38

[Compare Source](https://togithub.com/tokio-rs/tracing/compare/tracing-0.1.37...tracing-0.1.38)

This `tracing` release changes the `Drop` implementation for `Instrumented`
`Future`s so that the attached `Span` is entered when dropping the `Future`. This
means that events emitted by the `Future`'s `Drop` implementation will now be
recorded within its `Span`. It also adds `#[inline]` hints to methods called in
the `event!` macro's expansion, for an improvement in both binary size and
performance.

Additionally, this release updates the `tracing-attributes` dependency to
[v0.1.24][attrs-0.1.24], which updates the [`syn`][syn] dependency to v2.x.x.
`tracing-attributes` v0.1.24 also includes improvements to the `#[instrument]`
macro; see [the `tracing-attributes` 0.1.24 release notes][attrs-0.1.24] for
details.

##### Added

-   `Instrumented` futures will now enter the attached `Span` in their `Drop`
    implementation, allowing events emitted when dropping the future to occur
    within the span ([#&#8203;2562](https://togithub.com/tokio-rs/tracing/issues/2562))
-   `#[inline]` attributes for methods called by the `event!` macros, making
    generated code smaller ([#&#8203;2555](https://togithub.com/tokio-rs/tracing/issues/2555))
-   **attributes**: `level` argument to `#[instrument(err)]` and
    `#[instrument(ret)]` to override the level of
    the generated return value event ([#&#8203;2335](https://togithub.com/tokio-rs/tracing/issues/2335))
-   **attributes**: Improved compiler error message when `#[instrument]` is added to a `const fn`
    ([#&#8203;2418](https://togithub.com/tokio-rs/tracing/issues/2418))

##### Changed

-   `tracing-attributes`: updated to [0.1.24][attrs-0.1.24]
-   Removed unneeded `cfg-if` dependency ([#&#8203;2553](https://togithub.com/tokio-rs/tracing/issues/2553))
-   **attributes**: Updated [`syn`][syn] dependency to 2.0 ([#&#8203;2516](https://togithub.com/tokio-rs/tracing/issues/2516))

##### Fixed

-   **attributes**: Fix `clippy::unreachable` warnings in `#[instrument]`-generated code ([#&#8203;2356](https://togithub.com/tokio-rs/tracing/issues/2356))
-   **attributes**: Removed unused "visit" feature flag from `syn` dependency ([#&#8203;2530](https://togithub.com/tokio-rs/tracing/issues/2530))

##### Documented

-   **attributes**: Documented default level for `#[instrument(err)]` ([#&#8203;2433](https://togithub.com/tokio-rs/tracing/issues/2433))
-   **attributes**: Improved documentation for levels in `#[instrument]` ([#&#8203;2350](https://togithub.com/tokio-rs/tracing/issues/2350))

Thanks to [@&#8203;nitnelave](https://togithub.com/nitnelave), [@&#8203;jsgf](https://togithub.com/jsgf), [@&#8203;Abhicodes-crypto](https://togithub.com/Abhicodes-crypto), [@&#8203;LukeMathWalker](https://togithub.com/LukeMathWalker), [@&#8203;andrewpollack](https://togithub.com/andrewpollack),
[@&#8203;quad](https://togithub.com/quad), [@&#8203;klensy](https://togithub.com/klensy), [@&#8203;davidpdrsn](https://togithub.com/davidpdrsn), [@&#8203;dbidwell94](https://togithub.com/dbidwell94), [@&#8203;ldm0](https://togithub.com/ldm0), [@&#8203;NobodyXu](https://togithub.com/NobodyXu), [@&#8203;ilsv](https://togithub.com/ilsv), and [@&#8203;daxpedda](https://togithub.com/daxpedda)
for contributing to this release!

[`syn`]: https://crates.io/crates/syn

[attrs-0.1.24]: https://togithub.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.24

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/X-oss-byte/Canary-nextjs).
  • Loading branch information
renovate[bot] authored Oct 13, 2023
1 parent 46227d4 commit b5b2d6b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
15 changes: 7 additions & 8 deletions packages/next-swc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/next-swc/crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pathdiff = "0.2.1"
regex = "1.10"
serde = "1"
serde_json = "1"
tracing = { version = "0.1.37", features = ["release_max_level_info"] }
tracing = { version = "0.1.39", features = ["release_max_level_info"] }

next-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-230126.1", features = [
"__swc_core",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/napi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ next-swc = { version = "0.0.0", path = "../core" }
once_cell = "1.18.0"
serde = "1"
serde_json = "1"
tracing = { version = "0.1.37", features = ["release_max_level_info"] }
tracing = { version = "0.1.39", features = ["release_max_level_info"] }
tracing-futures = "0.2.5"
tracing-subscriber = "0.3.17"
tracing-chrome = "0.7.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ parking_lot_core = "=0.9.8"
path-clean = "1.0"
serde = {version = "1", features = ["derive"]}
serde_json = "1"
tracing = { version = "0.1.37", features = ["release_max_level_off","max_level_off"] }
tracing = { version = "0.1.39", features = ["release_max_level_off","max_level_off"] }
wasm-bindgen = {version = "0.2", features = ["enable-interning"]}
wasm-bindgen-futures = "0.4.37"
getrandom = { version = "0.2.10", optional = true, default-features = false }
Expand Down

0 comments on commit b5b2d6b

Please sign in to comment.