mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
expose tick function
This commit is contained in:
parent
31933c9369
commit
62f3bb8b03
1 changed files with 7 additions and 0 deletions
|
|
@ -144,6 +144,13 @@ module Collector = struct
|
|||
match !backend with
|
||||
| None -> Bytes.make 8 '?'
|
||||
| Some (module B) -> B.rand_bytes_8()
|
||||
|
||||
(** Do background work. Call this regularly if the collector doesn't
|
||||
already have a ticker thread or internal timer. *)
|
||||
let tick () =
|
||||
match !backend with
|
||||
| None -> ()
|
||||
| Some (module B) -> B.tick()
|
||||
end
|
||||
|
||||
module Util_ = struct
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue