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
860b278b1c
commit
daeafc9b4b
1 changed files with 8 additions and 2 deletions
|
|
@ -13,9 +13,15 @@ type t = {
|
|||
}
|
||||
|
||||
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 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 {
|
||||
debug;
|
||||
self_trace;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue