Skip to content

chore: update everything to use try_close #174

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

Merged
merged 3 commits into from
Jul 11, 2019
Merged

chore: update everything to use try_close #174

merged 3 commits into from
Jul 11, 2019

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Jul 11, 2019

Motivation

tracing-core 0.1.2 deprecated the Subscriber::drop_span function in
favour of try_close.

Solution

This branch updates all other crates to depend on core 0.1.2, and
replaces uses of drop_span with try_close.

@hawkw hawkw added crate/futures Related to the `tracing-futures` crate crate/log Related to the `tracing-log` crate crate/fmt Related to the `tracing-fmt` crate crate/subscriber Related to the `tracing-subscriber` crate crate/tracing Related to the `tracing` crate kind/maintenance labels Jul 11, 2019
@hawkw hawkw requested a review from LucioFranco July 11, 2019 00:06
@hawkw hawkw self-assigned this Jul 11, 2019
@hawkw hawkw requested review from davidbarsky and jonhoo July 11, 2019 00:06
@hawkw
Copy link
Member Author

hawkw commented Jul 11, 2019

It looks like a new version of the quote crate (v0.6.13) has been published that seems to fix the issues that resulted in broken builds on CI earlier. I think if we restart the most recent failed build on this branch, we should hopefully not see that failure any longer.

@hawkw
Copy link
Member Author

hawkw commented Jul 11, 2019

Hmm, nightly CI build still seems to be broken, that's very odd. A clean build works locally for me.

@hawkw
Copy link
Member Author

hawkw commented Jul 11, 2019

Ah, cool, apparently it's a compiler bug: serde-rs/serde#1570 (comment).

I'm just going to allow the nightly build to fail for now. We can revisit that later if we want to guarantee compatibility with nightly, but in general, I think requiring the fairly unstable nightly build to pass is probably unnecessary.

hawkw added a commit that referenced this pull request Jul 11, 2019
## Motivation

Recent CI builds have failed on nightly due to a compiler bug:
#174 (comment)

In general, nightly Rust is unstable, and it may often fail for reasons
that are not our fault. We shouldn't block merging branches on nightly
failures, when they are often spurious or unrelated to `tracing`. It is,
however, still good to look at these builds when possible.

## Solution

This branch allows failures on `nightly` CI builds. 

This means that the readme-doctest build is also allowed to fail, which
is a shame. It would be good to find a solution for testing readme
examples that doesn't require `nightly` Rust. I have some ideas for this
that I'll try to address in a subsequent branch.

Signed-off-by: Eliza Weisman <[email protected]>
@hawkw hawkw force-pushed the eliza/update-world branch from e5d8b93 to 945de8e Compare July 11, 2019 18:08
hawkw added a commit that referenced this pull request Jul 11, 2019
Recent CI builds have failed on nightly due to a compiler bug:
#174 (comment)

In general, nightly Rust is unstable, and it may often fail for reasons
that are not our fault. We shouldn't block merging branches on nightly
failures, when they are often spurious or unrelated to `tracing`. It is,
however, still good to look at these builds when possible.

This branch allows failures on `nightly` CI builds.

This means that the readme-doctest build is also allowed to fail, which
is a shame. It would be good to find a solution for testing readme
examples that doesn't require `nightly` Rust. I have some ideas for this
that I'll try to address in a subsequent branch.

Signed-off-by: Eliza Weisman <[email protected]>
hawkw added 3 commits July 11, 2019 11:38
@hawkw hawkw force-pushed the eliza/update-world branch from 945de8e to fc2d6ba Compare July 11, 2019 18:39
@hawkw hawkw merged commit 96424d0 into master Jul 11, 2019
@hawkw hawkw deleted the eliza/update-world branch July 11, 2019 18:56
hawkw added a commit that referenced this pull request Jul 11, 2019
# 0.1.3 (July 11, 2019)

### Added

- Log messages when a subscriber indicates that a span has closed, when the
  `log` feature flag is enabled (#180).

### Changed

- `tracing-core` minimum dependency version to 0.1.2 (#174).

### Fixed

- Fixed an issue where event macro invocations with a single field, using local
  variable shorthand, would recur infinitely (#166).
- Fixed uses of deprecated `tracing-core` APIs (#174).

Signed-off-by: Eliza Weisman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate/fmt Related to the `tracing-fmt` crate crate/futures Related to the `tracing-futures` crate crate/log Related to the `tracing-log` crate crate/subscriber Related to the `tracing-subscriber` crate crate/tracing Related to the `tracing` crate kind/maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants