lib/opentelemetry/sdk/metrics/aggregation/histogram_data_point.rb in opentelemetry-metrics-sdk-0.4.0 vs lib/opentelemetry/sdk/metrics/aggregation/histogram_data_point.rb in opentelemetry-metrics-sdk-0.4.1
- old
+ new
@@ -12,10 +12,10 @@
# rubocop:disable Lint/StructNewOverride
HistogramDataPoint = Struct.new(:attributes, # optional Hash{String => String, Numeric, Boolean, Array<String, Numeric, Boolean>}
:start_time_unix_nano, # Integer nanoseconds since Epoch
:time_unix_nano, # Integer nanoseconds since Epoch
:count, # Integer count is the number of values in the population. Must be non-negative.
- :sum, # Integer sum of the values in the population. If count is zero then this field then this field must be zero
+ :sum, # Float sum of the values in the population. If count is zero then this field must be zero.
:bucket_counts, # optional Array[Integer] field contains the count values of histogram for each bucket.
:explicit_bounds, # Array[Float] specifies buckets with explicitly defined bounds for values.
:exemplars, # optional List of exemplars collected from measurements that were used to form the data point
:min, # optional Float min is the minimum value over (start_time, end_time].
:max) # optional Float max is the maximum value over (start_time, end_time].