Upgrading tracing-subscriber 0.1 to 0.2
Breaking0.1.6 → 0.2.25Breaking1Platform1Deprecated1New19Changed4Fixed17Other7
BreakingUpgrade verdict
1 breaking change and a platform requirement change.
In plain terms
- A low-level type used when serializing tracing fields now requires an extra lifetime parameter, so code that names it directly must be updated.
- The crate now requires Rust 1.63 or newer to compile.
- A method for finding a span's parent is being retired because it does not work correctly with the new per-layer filtering. Use the suggested replacement instead.
Must act 3 items need code or config changes
What you must change
Breaking1
SerializeField gains a generic lifetime parameter, changing its definition.
SerializeFieldPlatform1
Bumps the minimum supported Rust version to 1.63.
Deprecations to plan for
Deprecated1
Deprecates registry SpanRef::parent_id because it cannot properly support per-layer filtering; use .parent().map(SpanRef::id) instead.
SpanRef::parent_idSpanRef::parentSpanRef::id