Skip to content

Commit 5f908cb

Browse files
chore: Add info on set local aggregator behaviour (#3276)
1 parent 955f1ff commit 5f908cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sentry/src/main/java/io/sentry/MetricsAggregator.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ private void add(
219219
}
220220
totalBucketsWeight.addAndGet(addedWeight);
221221
}
222+
223+
// For sets, we only record that a value has been added to the set but not which one.
224+
// See develop docs: https://develop.sentry.dev/sdk/metrics/#sets
222225
if (localMetricsAggregator != null) {
223226
final double localValue = type == MetricType.Set ? addedWeight : value;
224227
localMetricsAggregator.add(metricKey, type, key, localValue, unit, tags, timestampMs);

0 commit comments

Comments
 (0)