Skip to content

Commit d4c750c

Browse files
hawkwkaffarell
authored andcommitted
tracing: prepare to release v0.1.25
Added - `Span::entered` method for entering a span and moving it into a guard by value rather than borrowing it (tokio-rs#1252) Thanks to @matklad for contributing to this release! Signed-off-by: Eliza Weisman <[email protected]>
1 parent 0346656 commit d4c750c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

tracing/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
# 0.1.25 (February 23, 2021)
2+
3+
### Added
4+
5+
- `Span::entered` method for entering a span and moving it into a guard by value
6+
rather than borrowing it ([#1252])
7+
8+
Thanks to @matklad for contributing to this release!
9+
10+
[#1252]: https://github.com/tokio-rs/tracing/pull/1252
11+
112
# 0.1.24 (February 17, 2021)
213

314
### Fixed

tracing/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ my_future
250250
is as long as the future's.
251251

252252
The second, and preferred, option is through the
253-
[`#[instrument]`](https://docs.rs/tracing/0.1.24/tracing/attr.instrument.html)
253+
[`#[instrument]`](https://docs.rs/tracing/0.1.25/tracing/attr.instrument.html)
254254
attribute:
255255

256256
```rust
@@ -297,7 +297,7 @@ span.in_scope(|| {
297297
// Dropping the span will close it, indicating that it has ended.
298298
```
299299

300-
The [`#[instrument]`](https://docs.rs/tracing/0.1.24/tracing/attr.instrument.html) attribute macro
300+
The [`#[instrument]`](https://docs.rs/tracing/0.1.25/tracing/attr.instrument.html) attribute macro
301301
can reduce some of this boilerplate:
302302

303303
```rust

0 commit comments

Comments
 (0)