Releases: tokio-rs/tracing
tracing-log 0.2.0
This release contains two breaking changes: the removal of the env_logger
and trace_logger
features. Below are the suggested migration paths:
env_logger
: users should usetracing_subscriber::fmt::Subscriber
ortracing_subscriber::fmt::Layer
with theTargets
or
EnvFilter
filters instead.trace_logger
: users should use thetracing
crate's
"log" feature flag instead.
Breaking Changes
- Remove deprecated
env_logger
feature. This removes the dependency
on the unmaintainedatty
crate, resolving the security advisory
GHSA-g98v-hv3f-hcfr/RUSTSEC-2021-0145. (#2771) - Remove deprecated
trace_logger
feature. (#2771)
tracing-log 0.1.4
tracing 0.1.40
This release fixes a potential stack use-after-free in the
Instrument::into_inner
method. Only uses of this method are affected by this
bug.
Fixed
- Use
mem::ManuallyDrop
instead ofmem::forget
inInstrument::into_inner
(#2765)
Thanks to @cramertj and @Manishearth for finding and fixing this issue!
tracing-core 0.1.32
tracing-attributes 0.1.27
tracing 0.1.39
This release adds several additional features to the tracing
macros. In
addition, it updates the tracing-core
dependency to v0.1.32 and
the tracing-attributes
dependency to v0.1.27.
Added
- Allow constant field names in macros (#2617)
- Allow setting event names in macros (#2699)
- core: Allow
ValueSet
s of any length (#2508)
Changed
tracing-attributes
: updated to 0.1.27tracing-core
: updated to 0.1.32- attributes: Bump minimum version of proc-macro2 to 1.0.60 (#2732)
- attributes: Generate less dead code for async block return type hint (#2709)
Fixed
- Use fully qualified names in macros for items exported from std prelude
(#2621, #2757) - attributes: Allow [
clippy::let_with_type_underscore
] in macro-generated
code ([#2609]) - attributes: Allow
unknown_lints
in macro-generated code (#2626) - attributes: Fix a compilation error in
#[instrument]
when the"log"
feature is enabled (#2599)
Documented
tracing-attributes 0.1.26
tracing-attributes 0.1.25
This release of tracing-attributes
fixes the Clippy lint
let_with_type_underscore
in code generated by the #[instrument]
attribute in Rust 1.70+.
Fixed
- Allow [
clippy::let_with_type_underscore
] in macro-generated code (#2609)
Thanks to @coolreader19 for contributing to this release!
tracing-core 0.1.31
This release of tracing-core
fixes a bug that caused threads which call
dispatcher::get_default
before a global default subscriber is set to never
see the global default once it is set. In addition, it includes improvements for
instrumentation performance in some cases, especially when using a global
default dispatcher.
Fixed
- Fixed incorrect thread-local caching of
Dispatch::none
if
dispatcher::get_default
is called beforedispatcher::set_global_default
(#2593)
Changed
- Cloning a
Dispatch
that points at a global default subscriber no longer
requires anArc
reference count increment, improving performance
substantially (#2593) dispatcher::get_default
no longer attempts to access a thread local if the
scoped dispatcher is not in use, improving performance when the default
dispatcher is global (#2593)- Added
#[inline]
annotations called by theevent!
andspan!
macros to
reduce the size of macro-generated code and improve recording performance
(#2555)
Thanks to new contributor @ldm0 for contributing to this release!
tracing 0.1.38
This tracing
release changes the Drop
implementation for Instrumented
Future
s so that the attached Span
is entered when dropping the Future
. This
means that events emitted by the Future
's Drop
implementation will now be
recorded within its Span
. It also adds #[inline]
hints to methods called in
the event!
macro's expansion, for an improvement in both binary size and
performance.
Additionally, this release updates the tracing-attributes
dependency to
v0.1.24, which updates the syn
dependency to v2.x.x.
tracing-attributes
v0.1.24 also includes improvements to the #[instrument]
macro; see the tracing-attributes
0.1.24 release notes for
details.
Added
Instrumented
futures will now enter the attachedSpan
in theirDrop
implementation, allowing events emitted when dropping the future to occur
within the span (#2562)#[inline]
attributes for methods called by theevent!
macros, making
generated code smaller (#2555)- attributes:
level
argument to#[instrument(err)]
and
#[instrument(ret)]
to override the level of
the generated return value event (#2335) - attributes: Improved compiler error message when
#[instrument]
is added to aconst fn
(#2418)
Changed
tracing-attributes
: updated to 0.1.24- Removed unneeded
cfg-if
dependency (#2553) - attributes: Updated
syn
dependency to 2.0 (#2516)
Fixed
- attributes: Fix
clippy::unreachable
warnings in#[instrument]
-generated code (#2356) - attributes: Removed unused "visit" feature flag from
syn
dependency (#2530)
Documented
- attributes: Documented default level for
#[instrument(err)]
(#2433) - attributes: Improved documentation for levels in
#[instrument]
(#2350)
Thanks to @nitnelave, @jsgf, @Abhicodes-crypto, @LukeMathWalker, @andrewpollack,
@quad, @klensy, @davidpdrsn, @dbidwell94, @ldm0, @NobodyXu, @ilsv, and @daxpedda
for contributing to this release!