span: carry flags over to span_link

This commit is contained in:
Simon Cruanes 2026-01-12 20:08:57 -05:00
parent 2d6ec5c0f6
commit 513aafe6e8
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -72,6 +72,11 @@ let kind self =
let to_span_link (self : t) : Span_link.t = let to_span_link (self : t) : Span_link.t =
make_span_link ~attributes:self.attributes make_span_link ~attributes:self.attributes
?flags:
(if span_has_flags self then
Some self.flags
else
None)
?dropped_attributes_count: ?dropped_attributes_count:
(if span_has_dropped_attributes_count self then (if span_has_dropped_attributes_count self then
Some self.dropped_attributes_count Some self.dropped_attributes_count