1 write to ExplicitBounds
Aspire.Dashboard (1)
Otlp\Model\MetricValues\HistogramValue.cs (1)
43ExplicitBounds = explicitBounds;
17 references to ExplicitBounds
Aspire.Dashboard (10)
Components\Controls\Chart\ChartDataCalculator.cs (2)
287histogramValue.ExplicitBounds, previousHistogramValues.AsSpan()) 289histogramValue.ExplicitBounds, previousHistogramValues.AsSpan());
Model\TelemetryExportService.cs (1)
582ExplicitBounds = histogramValue.ExplicitBounds,
Otlp\Model\MetricValues\HistogramValue.cs (6)
64var sameBounds = previous is not null && HasSameBounds(previous.ExplicitBounds, point); 112var bounds = previous is not null && sameBounds ? previous.ExplicitBounds : point.ExplicitBounds.ToArray(); 159var value = new HistogramValue(Values, Sum, Count, StartTimeUnixNano, EndTimeUnixNano, ExplicitBounds, AggregationStartUnixNano, AggregationId, AggregationTemporality); 177&& ExplicitBounds.Equivalent(other.ExplicitBounds); 182return HashCode.Combine(StartTimeUnixNano, Count, Values, Sum, ExplicitBounds, AggregationStartUnixNano, AggregationId, AggregationTemporality);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (1)
396parameters[10].Value = point.Histogram is not null ? PackDoubleValues(point.Histogram.ExplicitBounds) : DBNull.Value;
Aspire.Dashboard.Tests (7)
Integration\OtlpHttpJsonTests.cs (1)
786Assert.Collection(histogramValue.ExplicitBounds,
TelemetryRepositoryTests\HistogramTests.cs (3)
622Assert.Equal([20d, 200d], value.ExplicitBounds); 1330Assert.Equal(reset.ExplicitBounds, current.ExplicitBounds); 1502Assert.Equal([10d, 100d], Assert.IsType<HistogramValue>(Assert.Single(Assert.Single(instrument.Dimensions).Values)).ExplicitBounds);
TelemetryRepositoryTests\MetricsTests.cs (2)
1481Assert.Equal([1d, 2d], histogramValue.ExplicitBounds); 2620Assert.Equal(Enumerable.Range(1, 200).Select(value => (double)value), histogramValue.ExplicitBounds);
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (1)
596Assert.Equal([1d, 2d], value.ExplicitBounds);