mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 20:33:36 -04:00
18 lines
299 B
OCaml
18 lines
299 B
OCaml
[@@@ocaml.warning "-27-30-39"]
|
|
|
|
|
|
type status = {
|
|
code : int32;
|
|
message : bytes;
|
|
details : bytes list;
|
|
}
|
|
|
|
let rec default_status
|
|
?code:((code:int32) = 0l)
|
|
?message:((message:bytes) = Bytes.create 0)
|
|
?details:((details:bytes list) = [])
|
|
() : status = {
|
|
code;
|
|
message;
|
|
details;
|
|
}
|