You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/internal/aggregator/DoubleExponentialHistogramAggregator.java
+22-12
Original file line number
Diff line number
Diff line change
@@ -58,25 +58,20 @@ public AggregatorHandle<ExponentialHistogramAccumulation, DoubleExemplarData> cr
58
58
}
59
59
60
60
/**
61
-
* This function is an immutable merge. It firstly combines the sum and zero count. Then it
62
-
* performs a merge using the buckets from both accumulations, without modifying those
63
-
* accumulations.
64
-
*
65
-
* @param previous the previously captured accumulation
66
-
* @param current the newly captured (delta) accumulation
67
-
* @return the result of the merge of the given accumulations.
61
+
* Merge the exponential histogram accumulations. Mutates the {@link
62
+
* ExponentialHistogramAccumulation#getPositiveBuckets()} and {@link
63
+
* ExponentialHistogramAccumulation#getNegativeBuckets()} of {@code previous}. Mutating buckets is
64
+
* acceptable because copies are already made in {@link Handle#doAccumulateThenReset(List)}.
Copy file name to clipboardExpand all lines: sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/internal/aggregator/DoubleExponentialHistogramBuckets.java
0 commit comments