mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-07 18:37:56 -05:00
compat fix
This commit is contained in:
parent
bb78e9babb
commit
eb4abf2966
1 changed files with 5 additions and 1 deletions
|
|
@ -98,7 +98,11 @@ open struct
|
||||||
self.tbl_open_spans Str_map.empty
|
self.tbl_open_spans Str_map.empty
|
||||||
in
|
in
|
||||||
let unclosed_spans =
|
let unclosed_spans =
|
||||||
{ num; by_name = Str_map.to_list names_with_count }
|
{
|
||||||
|
num;
|
||||||
|
by_name =
|
||||||
|
Str_map.fold (fun name id l -> (name, id) :: l) names_with_count [];
|
||||||
|
}
|
||||||
in
|
in
|
||||||
emit self unclosed_spans
|
emit self unclosed_spans
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue