mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
ocurl-client: reset needs_gc_metrics
This commit is contained in:
parent
5180be31bc
commit
786ebb611a
1 changed files with 1 additions and 0 deletions
|
|
@ -46,6 +46,7 @@ let gc_metrics = AList.make() (* side channel for GC, appended to {!E_metrics}'s
|
|||
|
||||
let emit_gc_metrics () =
|
||||
let l = OT.Metrics.make_resource_metrics @@ Opentelemetry.GC_metrics.get_metrics() in
|
||||
Atomic.set needs_gc_metrics false;
|
||||
AList.add gc_metrics l
|
||||
|
||||
let lock_ : (unit -> unit) ref = ref ignore
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue