mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-08 03:47:57 -04:00
fix test
This commit is contained in:
parent
cd6f6f6025
commit
71dc18c00a
1 changed files with 3 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ let run () =
|
||||||
for _i = 1 to 50 do
|
for _i = 1 to 50 do
|
||||||
Trace.with_span ~__FILE__ ~__LINE__ "outer.loop" @@ fun _sp ->
|
Trace.with_span ~__FILE__ ~__LINE__ "outer.loop" @@ fun _sp ->
|
||||||
let pseudo_async_sp =
|
let pseudo_async_sp =
|
||||||
Trace.enter_manual_toplevel_span ~__FILE__ ~__LINE__ "fake_sleep"
|
Trace.enter_manual_span ~parent:None ~__FILE__ ~__LINE__ "fake_sleep"
|
||||||
in
|
in
|
||||||
|
|
||||||
for _j = 2 to 5 do
|
for _j = 2 to 5 do
|
||||||
|
|
@ -22,7 +22,8 @@ let run () =
|
||||||
if _j = 2 then (
|
if _j = 2 then (
|
||||||
Trace.add_data_to_span _sp [ "j", `Int _j ];
|
Trace.add_data_to_span _sp [ "j", `Int _j ];
|
||||||
let _sp =
|
let _sp =
|
||||||
Trace.enter_manual_sub_span ~parent:pseudo_async_sp
|
Trace.enter_manual_span
|
||||||
|
~parent:(Some (Trace.ctx_of_span pseudo_async_sp))
|
||||||
~flavor:
|
~flavor:
|
||||||
(if _i mod 3 = 0 then
|
(if _i mod 3 = 0 then
|
||||||
`Sync
|
`Sync
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue