mirror of
https://github.com/ocaml-tracing/ocaml-trace.git
synced 2026-03-08 03:47:57 -04:00
fix compat
This commit is contained in:
parent
9c6f158c9c
commit
d3bfb7776b
1 changed files with 5 additions and 2 deletions
|
|
@ -9,6 +9,9 @@ module Buf_pool = Buf_pool
|
||||||
|
|
||||||
open struct
|
open struct
|
||||||
let spf = Printf.sprintf
|
let spf = Printf.sprintf
|
||||||
|
|
||||||
|
let[@inline] int64_of_trace_id_ (id : Trace_core.trace_id) : int64 =
|
||||||
|
Bytes.get_int64_le (Bytes.unsafe_of_string id) 0
|
||||||
end
|
end
|
||||||
|
|
||||||
open Util
|
open Util
|
||||||
|
|
@ -494,7 +497,7 @@ module Event = struct
|
||||||
|
|
||||||
Buf.add_string buf name;
|
Buf.add_string buf name;
|
||||||
Arguments.encode buf args;
|
Arguments.encode buf args;
|
||||||
Buf.add_i64 buf (String.get_int64_le async_id 0);
|
Buf.add_i64 buf (int64_of_trace_id_ async_id);
|
||||||
()
|
()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
@ -530,7 +533,7 @@ module Event = struct
|
||||||
|
|
||||||
Buf.add_string buf name;
|
Buf.add_string buf name;
|
||||||
Arguments.encode buf args;
|
Arguments.encode buf args;
|
||||||
Buf.add_i64 buf (String.get_int64_le async_id 0);
|
Buf.add_i64 buf (int64_of_trace_id_ async_id);
|
||||||
()
|
()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue