mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-03-08 03:47:59 -04:00
always use a default aggregation_temporality
This commit is contained in:
parent
5fa29d6975
commit
4fd4139921
1 changed files with 3 additions and 2 deletions
|
|
@ -472,11 +472,12 @@ module Metrics = struct
|
||||||
|
|
||||||
(** Sum of all reported measurements over a time interval *)
|
(** Sum of all reported measurements over a time interval *)
|
||||||
let sum ~name ?description ?unit_
|
let sum ~name ?description ?unit_
|
||||||
?aggregation_temporality ?is_monotonic
|
?(aggregation_temporality=Aggregation_temporality_cumulative)
|
||||||
|
?is_monotonic
|
||||||
(l:number_data_point list) : t =
|
(l:number_data_point list) : t =
|
||||||
let data =
|
let data =
|
||||||
Sum (default_sum ~data_points:l ?is_monotonic
|
Sum (default_sum ~data_points:l ?is_monotonic
|
||||||
?aggregation_temporality ()) in
|
~aggregation_temporality ()) in
|
||||||
default_metric ~name ?description ?unit_ ~data ()
|
default_metric ~name ?description ?unit_ ~data ()
|
||||||
|
|
||||||
(* TODO
|
(* TODO
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue