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