always use a default aggregation_temporality

This commit is contained in:
Simon Cruanes 2022-03-23 08:58:18 -04:00
parent 5fa29d6975
commit 4fd4139921
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4

View file

@ -472,11 +472,12 @@ module Metrics = struct
(** Sum of all reported measurements over a time interval *)
let sum ~name ?description ?unit_
?aggregation_temporality ?is_monotonic
?(aggregation_temporality=Aggregation_temporality_cumulative)
?is_monotonic
(l:number_data_point list) : t =
let data =
Sum (default_sum ~data_points:l ?is_monotonic
?aggregation_temporality ()) in
~aggregation_temporality ()) in
default_metric ~name ?description ?unit_ ~data ()
(* TODO