(span_trace: &SpanTrace, context: &mut HookContext<SpanTrace>)
| 530 | |
| 531 | #[cfg(feature = "spantrace")] |
| 532 | fn span_trace(span_trace: &SpanTrace, context: &mut HookContext<SpanTrace>) { |
| 533 | let idx = context.increment_counter(); |
| 534 | |
| 535 | let mut span = 0; |
| 536 | span_trace.with_spans(|_, _| { |
| 537 | span += 1; |
| 538 | true |
| 539 | }); |
| 540 | |
| 541 | context.push_appendix(format!("span trace No. {}\n{span_trace}", idx + 1)); |
| 542 | context.push_body(format!("span trace with {span} frames ({})", idx + 1)); |
| 543 | } |
| 544 | } |
nothing calls this directly
no test coverage detected