Skip to content
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

subscriber: update tracing-core to v0.1.33 #3201

Merged
merged 2 commits into from
Jan 27, 2025

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
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