mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-07 18:37:56 -05:00
fix for trace 0.1
This commit is contained in:
parent
92dfa4c2f8
commit
1ff96737db
1 changed files with 8 additions and 0 deletions
|
|
@ -138,6 +138,14 @@ let collector () : Trace.collector =
|
|||
let name_process _name = ()
|
||||
|
||||
let name_thread _name = ()
|
||||
|
||||
let counter_int name cur_val : unit =
|
||||
let m = Otel.Metrics.(gauge ~name [ int cur_val ]) in
|
||||
Otel.Metrics.emit [ m ]
|
||||
|
||||
let counter_float name cur_val : unit =
|
||||
let m = Otel.Metrics.(gauge ~name [ float cur_val ]) in
|
||||
Otel.Metrics.emit [ m ]
|
||||
end in
|
||||
(module M)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue