7 writes to BucketCounts
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
85BucketCounts = { 1, 2, 3 },
Aspire.Dashboard.Tests (6)
TelemetryRepositoryTests\MetricsTests.cs (5)
1330BucketCounts = { 1 }, 1338BucketCounts = { 1 }, 1346BucketCounts = { 1, 2, 3 }, 1410BucketCounts = { 1, 2, 3 }, 1417BucketCounts = { 1, 2, 3, 4 },
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
85BucketCounts = { 1, 2, 3 },
17 references to BucketCounts
Aspire.Dashboard (6)
Otlp\Model\MetricValues\DimensionScope.cs (2)
88if (lastHistogramValue is not null && lastHistogramValue.Values.Length != h.BucketCounts.Count) 116var bucketCounts = h.BucketCounts.ToArray();
Otlp\Model\OtlpHelpers.cs (1)
66if (point.BucketCounts.Count > 0 && point.ExplicitBounds.Count == 0)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (1)
569dataPoint.BucketCounts.Add(bc);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (2)
260if (latestPointType == HistogramPointType && latestBucketCountLength != point.BucketCounts.Count) 302HistogramBucketCounts = point.BucketCounts.Select(count => checked((long)count)).ToArray(),
Aspire.Dashboard.Tests (11)
ChartDataCalculatorTests.cs (3)
313histogramPoint.BucketCounts.AddRange([50UL, 40UL, 10UL, 0UL]); 385point.BucketCounts.AddRange(bucketCounts); 404histogramPoint.BucketCounts.AddRange([5UL, 5UL]);
TelemetryRepositoryTests\MetricsTests.cs (7)
1861point.BucketCounts.Clear(); 1862point.BucketCounts.AddRange([checked((ulong)value), 0, 0, 0]); 2084point.BucketCounts.Clear(); 2085point.BucketCounts.AddRange(pointIndex switch 2183histogramPoint.BucketCounts.Clear(); 2187histogramPoint.BucketCounts.Add(1); 2189histogramPoint.BucketCounts.Add(1);
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (1)
481changedHistogram.Histogram.DataPoints[0].BucketCounts.Add(4);