diff --git a/minitrace/src/span.rs b/minitrace/src/span.rs index e1bbed7f..0e035589 100644 --- a/minitrace/src/span.rs +++ b/minitrace/src/span.rs @@ -519,11 +519,9 @@ impl Drop for LocalParentGuard { let (spans, token) = inner.collector.collect_spans_and_token(); debug_assert!(token.is_some()); if let Some(token) = token { - if !spans.spans.is_empty() { - inner - .collect - .submit_spans(SpanSet::LocalSpansInner(spans), token); - } + inner + .collect + .submit_spans(SpanSet::LocalSpansInner(spans), token); } } }