mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-10 12:45:45 -04:00
perf: details
This commit is contained in:
parent
c313731a70
commit
34a4a87fc3
1 changed files with 2 additions and 2 deletions
|
|
@ -307,7 +307,7 @@ module Trace_id : sig
|
||||||
end = struct
|
end = struct
|
||||||
type t = bytes
|
type t = bytes
|
||||||
|
|
||||||
let to_bytes self = self
|
let[@inline] to_bytes self = self
|
||||||
|
|
||||||
let dummy : t = Bytes.make 16 '\x00'
|
let dummy : t = Bytes.make 16 '\x00'
|
||||||
|
|
||||||
|
|
@ -318,7 +318,7 @@ end = struct
|
||||||
Bytes.set b 0 (Char.unsafe_chr (Char.code (Bytes.get b 0) lor 1));
|
Bytes.set b 0 (Char.unsafe_chr (Char.code (Bytes.get b 0) lor 1));
|
||||||
b
|
b
|
||||||
|
|
||||||
let of_bytes b =
|
let[@inline] of_bytes b =
|
||||||
if Bytes.length b = 16 then
|
if Bytes.length b = 16 then
|
||||||
b
|
b
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue