tracing icon indicating copy to clipboard operation
tracing copied to clipboard

Documentation bug in `FmtContext::visit_spans`

Open Xaeroxe opened this issue 4 months ago • 0 comments

Bug Report

Version

tracing-subscriber 0.3.18

Platform

Documentation

Crates

tracing-subscriber

Description

The documentation for FmtContext::visit_spans claims that it will call the closure on the current span, and then upwards to the root span. The actual behavior is the reverse of this. It starts at the root, and then descends to the current span.

Either the implementation or the documentation should be updated. My preference is the documentation should be updated.

Xaeroxe avatar Apr 19 '24 22:04 Xaeroxe