4 writes to StartTime
Aspire.Dashboard (1)
Components\Controls\Chart\MetricInstrumentDataCache.cs (1)
35StartTime = OtlpHelpers.UnixNanoSecondsToDateTime(Math.Min(latestValue.StartTimeUnixNano, alignedLookbackStartUnixNano))
Aspire.Dashboard.Tests (3)
ChartDataCalculatorTests.cs (2)
1129new() { Attributes = firstAttributes, StartTime = start.AddSeconds(1) } 1186[new MetricDimensionCursor { Attributes = [], StartTime = start.AddSeconds(60) }],
TelemetryRepositoryTests\MetricsTests.cs (1)
2773StartTime = s_queryTestTime.AddMinutes(1.5)
6 references to StartTime
Aspire.Dashboard (3)
Components\Controls\Chart\MetricInstrumentDataCache.cs (2)
63var cursorUnixNano = OtlpHelpers.DateTimeToUnixNanoseconds(cursor.StartTime); 67(isDeltaNumber ? value.EndTimeUnixNano <= cursorUnixNano : value.End < cursor.StartTime))
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (1)
467queryParameters.Add($"DimensionStartUnixNano{i}", GetMetricQueryTimeUnixNano(cursor?.StartTime ?? defaultStartTime ?? DateTime.UnixEpoch, upperBound: false));
Aspire.Dashboard.Tests (3)
ChartDataCalculatorTests.cs (1)
1160Assert.Equal(start.AddSeconds(10), Assert.Single(cursors).StartTime);
TelemetryRepositoryTests\MetricsTests.cs (2)
2461Assert.Equal(s_queryTestTime.AddTicks(7), Assert.Single(cursors).StartTime); 2853Assert.Equal(s_queryTestTime, cursor.StartTime);