mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 12:23:32 -04:00
span: carry flags over to span_link
This commit is contained in:
parent
2d6ec5c0f6
commit
513aafe6e8
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue