Releases: tokio-rs/tracing
tracing-subscriber 0.2.22
This fixes a regression where the filter::ParseError type was
accidentally renamed.
Fixed
- filter: Fix
filter::ParseErroraccidentally being renamed to
filter::DirectiveParseError(#1558)
tracing-attributes 0.1.16
This release adds a new #[instrument(skip_all)] option to skip recording all
arguments to an instrumented function as fields. Additionally, it adds support
for recording arguments that are tracing primitive types as typed values,
rather than as fmt::Debug.
Added
- add
skip_alloption to#[instrument](#1548) - record primitive types as primitive values rather than as
fmt::Debug
(#1378) - added support for
f64s as typed values (#1522)
Thanks to @Folyd and @jsgf for contributing to this release!
tracing 0.1.27
This release adds a new Span::or_current method to aid in
efficiently propagating span contexts to spawned threads or tasks.
Additionally, it updates the tracing-core version to 0.1.20 and
the tracing-attributes version to 0.1.16, ensuring that a number
of new features in those crates are present.
Fixed
- instrument: Added missing
WithSubscriberimplementations for
futures and other types (#1424)
Added
Span::or_currentmethod, to help with efficient span context
propagation (#1538)- attributes: add
skip_alloption to#[instrument](#1548) - attributes: record primitive types as primitive values rather than
asfmt::Debug(#1378) - core:
NoSubscriber, a no-opSubscriberimplementation
(#1549) - core: Added
Visit::record_f64and support for recording
floating-point values (#1507, #1522) - A large number of documentation improvements and fixes (#1369,
#1398, #1435, #1442, #1524, #1556)
Thanks to new contributors @dzvon and @mbergkvist, as well as @teozkr,
@maxburke, @LukeMathWalker, and @jsgf, for contributing to this release!
tracing-subscriber 0.2.21
This release introduces the Filter trait, a new API for per-layer
filtering. This allows controlling which spans and events are
recorded by various layers individually, rather than globally.
In addition, it adds a new Targets filter, which provides a
lighter-weight version of the filtering provided by EnvFilter, as
well as other smaller API improvements and fixes.
Deprecated
- registry:
SpanRef::parent_id, which cannot properly support
per-layer filtering. Use.parent().map(SpanRef::id)instead.
(#1523)
Fixed
- layer
Contextmethods that are provided when theSubscriber
implementsLookupSpanno longer require the "registry" feature flag
(#1525) - layer
fmt::Debugimplementation forLayeredno longer requires
theStype parameter to implementDebug(#1528)
Added
- registry:
Filtertrait,Filteredtype,Layer::with_filter
method, and other APIs for per-layer filtering (#1523) - filter:
FilterFnandDynFilterFntypes that implement global
(Layer) and per-layer (Filter) filtering for closures and function
pointers (#1523) - filter:
Targetsfilter, which implements a lighter-weight form
ofEnvFilter-like filtering (#1550) - env-filter: Added support for filtering on floating-point values
(#1507) - layer:
Layer::on_layercallback, called when layering the
Layeronto aSubscriber(#1523) - layer:
Layerimplementations forBox<L>andArc<L>whereL: Layer(#1536) - layer:
Layerimplementations forBox<dyn Layer>and
Arc<dyn Layer>(#1536) - A number of small documentation fixes and improvements (#1553,
#1544, #1539, #1524)
Special thanks to new contributors @jsgf and @maxburke for contributing
to this release!
tracing-core 0.1.20
This release adds support for f64 as one of the tracing-core
primitive field values, allowing floating-point values to be recorded as
typed values rather than with fmt::Debug. Additionally, it adds
NoSubscriber, a Subscriber implementation that does nothing.
Added
- subscriber:
NoSubscriber, a no-opSubscriberimplementation
(#1549) - field: Added
Visit::record_f64and support for recording
floating-point values (#1507)
Thanks to new contributors @jsgf and @maxburke for contributing to this
release!
tracing-subscriber 0.2.14
0.2.14 (October 22, 2020)
Fixed
- registry: Fixed
Registry::newallocating an excessively large amount of
memory, most of which would never be used (#1064)
Changed
tracing-core 0.1.17
tracing-subscriber 0.2.9
Tracing 0.1.17
Changed
- log: Moved verbose span enter/exit log records to
"tracing::span::active" target, allowing them to be filtered
separately (#833) - log: All span lifecycle log records without fields now have the
Tracelog filter, to guard againstlogusers enabling them by
default with blanket level filtering (#833)
Fixed
- log/macros: Fixed missing implicit imports of the
tracing::field::debugandtracing::field::displayfunctions inside
the macros when the "log" feature is enabled (#835)