pub trait ScanExt<'a>: Sized {
    fn scan_spans(self) -> Scanner<Self, CapturedSpans<'a>>;
    fn scan_events(self) -> Scanner<Self, CapturedEvents<'a>>;
}
Expand description

Helper to wrap holders of CapturedSpans or CapturedEvents (spans or the underlying Storage) so that they are more convenient to use with Predicates.

See the module-level docs for examples of usage.

Required Methods§

Creates a scanner for the spans contained by this holder. What is meant by “contained” (i.e., whether the scan is deep or shallow), depends on the holder type and is documented at the corresponding impl.

Creates a scanner for the events contained by this holder. What is meant by “contained” (i.e., whether the scan is deep or shallow), depends on the holder type and is documented at the corresponding impl.

Implementors§

Scans for Storage are deep; they include all captured spans / events, not just root ones.

Scans for CapturedSpan are shallow, i.e. include only direct children spans / events.