lib/opentelemetry/sdk/metrics/aggregation/explicit_bucket_histogram.rb in opentelemetry-metrics-sdk-0.4.0 vs lib/opentelemetry/sdk/metrics/aggregation/explicit_bucket_histogram.rb in opentelemetry-metrics-sdk-0.4.1
- old
+ new
@@ -23,10 +23,9 @@
def initialize(
aggregation_temporality: ENV.fetch('OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE', :delta), # TODO: the default should be :cumulative, see issue #1555
boundaries: DEFAULT_BOUNDARIES,
record_min_max: true
)
-
@aggregation_temporality = aggregation_temporality.to_sym
@boundaries = boundaries && !boundaries.empty? ? boundaries.sort : nil
@record_min_max = record_min_max
end