mirror of
https://github.com/facebookexperimental/reverie.git
synced 2025-01-23 05:06:23 +00:00
b475f69187
Summary: This diff updates tracing. New features include: ## `tracing` - New `Value` implementations for `String` and 128-bit integers. The `Value` implementation for `String` allows recording a `String` without needing to call `.as_str()` or similar. The `Value` implementation allows recording 128-bit integers, resolving this papercut: https://fb.workplace.com/groups/learningrust/permalink/3208916922712504/. - There are additional methods on different trait objects of` Subscriber`s. ## `tracing-subscriber` - Fixes multiple filtering bugs in the `Layer` implementations for `Option<impl Layer>` and `Vec<impl Layer>` (this is how folks are able to do arbitrary/dynamic numbers of loggers in `tracing`). - Increases the minimum version of `tracing-core`. - Adds a new `Layer::event_enabled` method, which allows Layers to filter events _after_ their field values are recorded. This is import for - Some bug fixes in the `Filter` implementation for `EnvFilter`. ## `tracing-appender` - Fixes bug in `RollingFileAppender` that could result in a failure to rotate the log file, or in panics in debug mode. Notice to self: it seems like the filtering implementation in `tracing-subscriber` is kinda complex: it could make sense to fuzz it. --- ## Linked Change Logs - `tracing-core`: https://github.com/tokio-rs/tracing/blob/v0.1.x/tracing-core/CHANGELOG.md#0128-june-23-2022 - `tracing-subscriber`: https://github.com/tokio-rs/tracing/blob/v0.1.x/tracing-subscriber/CHANGELOG.md#0314-jul-1-2022 - `tracing-appender`: https://github.com/tokio-rs/tracing/blob/v0.1.x/tracing-appender/CHANGELOG.md#022-march-17-2022 (Note: this ignores all push blocking failures!) Reviewed By: jsgf Differential Revision: D37932030 fbshipit-source-id: bee53e5ba219ffbcc9009781d347cd6b40f577ee |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |