From 4fd4139921866da0bab1ccc5949517e1bf491811 Mon Sep 17 00:00:00 2001 From: Simon Cruanes Date: Wed, 23 Mar 2022 08:58:18 -0400 Subject: [PATCH] always use a default aggregation_temporality --- src/opentelemetry.ml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/opentelemetry.ml b/src/opentelemetry.ml index 0d75f943..29c389e7 100644 --- a/src/opentelemetry.ml +++ b/src/opentelemetry.ml @@ -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