mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
utils in Any_signal_l
This commit is contained in:
parent
e3c6c41a0d
commit
6436f0e36d
1 changed files with 12 additions and 0 deletions
|
|
@ -18,3 +18,15 @@ let pp out = function
|
|||
| Spans s -> pp_list Proto.Trace.pp_span out s
|
||||
| Metrics m -> pp_list Proto.Metrics.pp_metric out m
|
||||
| Logs l -> pp_list Proto.Logs.pp_log_record out l
|
||||
|
||||
let of_logs_or_empty = function
|
||||
| [] -> []
|
||||
| l -> [ Logs l ]
|
||||
|
||||
let of_metrics_or_empty = function
|
||||
| [] -> []
|
||||
| l -> [ Metrics l ]
|
||||
|
||||
let of_spans_or_empty = function
|
||||
| [] -> []
|
||||
| l -> [ Spans l ]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue