Skip to content

Conversation

hds
Copy link
Contributor

@hds hds commented Jan 24, 2025

The change #2954 was released in 0.3.19 (#3162).

Notably, it relied on features from tracing-core 0.1.33, however, the
version was never bumped. Users of the tracing feature of
tracing-subscriber would have no issue since it pulls in the higher
version transitively.

The specific feature used was implementing trait method record_bytes
from the field::Visit trait on JsonVisitor from the
tracing-subscriber json format module. (see linked #2945, or impl field::Visit for JsonVisitor<'_>)

I believe this dependency mismatch requires users to manually select the
higher tracing-core version or suffer compilation failure.

This probably reflects some failure in how the tests utilize features
and intra-workspace dependencies, but, a resolution for that is beyond
my current comprehension of the project.

This PR was created based on #3176 by @nkconnor, because it looks like
our job rules don't allow non-members to run jobs on PRs against the v0.1.x
branch (there's no button for me to approve the run).

The change #2954 was released in 0.3.19 (#3162).

Notably, it relied on features from tracing-core 0.1.33, however, the
version was never bumped. Users of the `tracing` feature of
`tracing-subscriber` would have no issue since it pulls in the higher
version transitively.

The specific feature used was implementing trait method `record_bytes`
from the `field::Visit` trait on `JsonVisitor` from the
tracing-subscriber json format module. (see linked #2945, or [ `impl
field::Visit for
JsonVisitor<'_>`](https://github.com/tokio-rs/tracing/blame/master/tracing-subscriber/src/fmt/format/json.rs#L491))

I believe this dependency mismatch requires users to manually select the
higher tracing-core version or suffer compilation failure.

This probably reflects some failure in how the tests utilize features
and intra-workspace dependencies, but, a resolution for that is beyond
my current comprehension of the project.
@hds hds requested review from hawkw and a team as code owners January 24, 2025 10:44
@davidbarsky davidbarsky merged commit bfca546 into v0.1.x Jan 27, 2025
52 checks passed
@davidbarsky davidbarsky deleted the subscriber-update-core-0.1.33 branch January 27, 2025 16:10
Amberley-Sz pushed a commit to Amberley-Sz/tracing that referenced this pull request Mar 10, 2025
u-kai pushed a commit to u-kai/tracing that referenced this pull request May 11, 2025
The change tokio-rs#2954 was released in 0.3.19 (tokio-rs#3162).

Notably, it relied on features from tracing-core 0.1.33, however, the
version was never bumped. Users of the `tracing` feature of
`tracing-subscriber` would have no issue since it pulls in the higher
version transitively.

The specific feature used was implementing trait method `record_bytes`
from the `field::Visit` trait on `JsonVisitor` from the
tracing-subscriber json format module. (see linked tokio-rs#2945, or [ `impl
field::Visit for
JsonVisitor<'_>`](https://github.com/tokio-rs/tracing/blame/master/tracing-subscriber/src/fmt/format/json.rs#L491))

I believe this dependency mismatch requires users to manually select the
higher tracing-core version or suffer compilation failure.

This probably reflects some failure in how the tests utilize features
and intra-workspace dependencies, but, a resolution for that is beyond
my current comprehension of the project.

Signed-off-by: u-kai <76635578+u-kai@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants