This commit is contained in:
Simon Cruanes 2025-01-30 20:44:57 -05:00
parent 440049a681
commit 92613d8526
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -489,7 +489,7 @@ end = struct
with Invalid_argument msg -> invalid_arg (spf "in span id: %s" msg)
in
if Bytes.get bs 52 <> '-' then invalid_arg "expected '-' after parent_id";
let sampled = int_of_string_opt (Bytes.sub_string bs 53 55) = Some 1 in
let sampled = int_of_string_opt (Bytes.sub_string bs 53 2) = Some 1 in
(* ignore flags *)
Ok { trace_id; parent_id; sampled }