mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-09 20:33:36 -04:00
9 lines
247 B
OCaml
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 ()
|