ocaml-opentelemetry/src/core/event.ml
2026-01-20 00:15:25 -05:00

9 lines
247 B
OCaml

open Common_
open Proto.Trace
type t = span_event
let make ?(time_unix_nano = Clock.now_main ()) ?(attrs = []) (name : string) : t
=
let attrs = List.map Key_value.conv attrs in
make_span_event ~time_unix_nano ~name ~attributes:attrs ()