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