mirror of
https://github.com/tokio-rs/tracing.git
synced 2025-10-02 07:20:35 +00:00

### Changed - **filter**: `EnvFilter` directive selection now behaves correctly (i.e. like `env_logger`) (#583) ### Fixed - **filter**: Fixed `EnvFilter` incorrectly allowing less-specific filter directives to enable events that are disabled by more-specific filters (#583) - **filter**: Multiple significant `EnvFilter` performance improvements, especially when filtering events generated by `log` records (#578, #583) - **filter**: Replaced `BTreeMap` with `Vec` in `DirectiveSet`, improving iteration performance significantly with typical numbers of filter directives (#580) A big thank-you to @samschlegel for lots of help with `EnvFilter` performance tuning in this release! Signed-off-by: Eliza Weisman <eliza@buoyant.io>
nightly-only examples
These examples demonstrate compatibility with Rust features that are not yet stable (primarily, async-await syntax).
Note that these examples are not in the root workspace, to avoid compiling
them on unsupported Rust versions when running cargo test --all
. Therefore,
they must be run from within the nightly-examples
directory.
Examples
async_fn.rs
: demonstrates how thetrace
attribute macro can be used to instrument anasync fn
.