15 references to UnixNanoSecondsToDateTime
Aspire.Dashboard (11)
Components\Controls\Chart\ChartExemplar.cs (1)
15public DateTimeOffset Start => new(OtlpHelpers.UnixNanoSecondsToDateTime(TimeUnixNano), TimeSpan.Zero);
Components\Controls\Chart\MetricInstrumentDataCache.cs (1)
35StartTime = OtlpHelpers.UnixNanoSecondsToDateTime(Math.Min(latestValue.StartTimeUnixNano, alignedLookbackStartUnixNano))
Otlp\Model\MetricValues\HistogramValue.cs (1)
73: OtlpHelpers.UnixNanoSecondsToDateTime(end).Ticks;
Otlp\Model\MetricValues\MetricValueBase.cs (3)
15public DateTime Start => OtlpHelpers.UnixNanoSecondsToDateTime(StartTimeUnixNano); 16public DateTime End => OtlpHelpers.UnixNanoSecondsToDateTime(EndTimeUnixNano); 48public DateTime Start => OtlpHelpers.UnixNanoSecondsToDateTime(TimeUnixNano);
Otlp\Model\OtlpLogEntryData.cs (1)
92return OtlpHelpers.UnixNanoSecondsToDateTime(resolvedTimeUnixNano);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Reads.cs (1)
195return endTimeUnixNano is not null ? OtlpHelpers.UnixNanoSecondsToDateTime(checked((ulong)endTimeUnixNano.Value)) : null;
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (3)
932StartTime = OtlpHelpers.UnixNanoSecondsToDateTime(span.StartTimeUnixNano), 933EndTime = OtlpHelpers.UnixNanoSecondsToDateTime(span.EndTimeUnixNano), 949Time = OtlpHelpers.UnixNanoSecondsToDateTime(spanEvent.TimeUnixNano),
Aspire.Dashboard.Tests (4)
HistogramAllocationTests.cs (1)
38Assert.Equal(OtlpHelpers.UnixNanoSecondsToDateTime(point.TimeUnixNano), previous.End);
TelemetryRepositoryTests\HistogramTests.cs (1)
1411StartTime = OtlpHelpers.UnixNanoSecondsToDateTime(start),
TelemetryRepositoryTests\MetricsTests.cs (2)
330var end = OtlpHelpers.UnixNanoSecondsToDateTime(nanoSeconds); 2113var afterMaximum = OtlpHelpers.UnixNanoSecondsToDateTime((ulong)long.MaxValue).AddTicks(1);