mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
client config: improve printer
This commit is contained in:
parent
b429336740
commit
5daef6873b
1 changed files with 8 additions and 2 deletions
|
|
@ -13,9 +13,15 @@ type t = {
|
||||||
}
|
}
|
||||||
|
|
||||||
let pp out (self : t) : unit =
|
let pp out (self : t) : unit =
|
||||||
let ppiopt = Format.pp_print_option Format.pp_print_int in
|
let ppiopt out i =
|
||||||
|
match i with
|
||||||
|
| None -> Format.fprintf out "None"
|
||||||
|
| Some i -> Format.fprintf out "%d" i
|
||||||
|
in
|
||||||
let pp_header ppf (a, b) = Format.fprintf ppf "@[%s: @,%s@]@." a b in
|
let pp_header ppf (a, b) = Format.fprintf ppf "@[%s: @,%s@]@." a b in
|
||||||
let ppheaders = Format.pp_print_list pp_header in
|
let ppheaders out l =
|
||||||
|
Format.fprintf out "[@[%a@]]" (Format.pp_print_list pp_header) l
|
||||||
|
in
|
||||||
let {
|
let {
|
||||||
debug;
|
debug;
|
||||||
self_trace;
|
self_trace;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue