mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-10 04:35:46 -04:00
chore: scope test metrics
This commit is contained in:
parent
5792c875e8
commit
68b2952b76
1 changed files with 3 additions and 3 deletions
|
|
@ -13,9 +13,9 @@ let run () =
|
||||||
let gc = Gc.stat() in
|
let gc = Gc.stat() in
|
||||||
T.Metrics.(
|
T.Metrics.(
|
||||||
emit [
|
emit [
|
||||||
gauge ~name:"i" [int !i];
|
gauge ~name:"ocaml_opentracing.test.i" [int !i];
|
||||||
gauge ~name:"major-heap-words" [int gc.Gc.heap_words];
|
gauge ~name:"ocaml_opentracing.test.major_heap_words" [int gc.Gc.heap_words];
|
||||||
sum ~name:"minor-allocated" [float gc.Gc.minor_words];
|
sum ~name:"ocaml_opentracing.test.minor_allocated" [float gc.Gc.minor_words];
|
||||||
]);
|
]);
|
||||||
|
|
||||||
incr i;
|
incr i;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue