From 513aafe6e8c6eebf574da33cffee13c065856fa5 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Mon, 12 Jan 2026 20:08:57 -0500 Subject: [PATCH] span: carry flags over to span_link --- src/core/span.ml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/span.ml b/src/core/span.ml index adbf3be8..0e3d1750 100644 --- a/src/core/span.ml +++ b/src/core/span.ml @@ -72,6 +72,11 @@ let kind self = let to_span_link (self : t) : Span_link.t = make_span_link ~attributes:self.attributes + ?flags: + (if span_has_flags self then + Some self.flags + else + None) ?dropped_attributes_count: (if span_has_dropped_attributes_count self then Some self.dropped_attributes_count