31 references to FirstSpan
Aspire.Dashboard (11)
Components\Pages\TraceDetail.razor.cs (1)
155
var traceStart = span.Trace.
FirstSpan
.StartTime;
Otlp\Model\OtlpTrace.cs (3)
23
var start =
FirstSpan
.StartTime;
134
return $@"TraceId = ""{TraceId}"", Spans = {Spans.Count}, StartDate = {
FirstSpan
.StartTime.ToLocalTime():yyyy:MM:dd}, StartTime = {
FirstSpan
.StartTime.ToLocalTime():h:mm:ss.fff tt}, Duration = {Duration}";
Otlp\Storage\TelemetryRepository.cs (7)
731
if (trace.
FirstSpan
.StartTime > currentTrace.
FirstSpan
.StartTime)
745
if (trace.
FirstSpan
== newSpan)
753
if (trace.
FirstSpan
.StartTime > currentTrace.
FirstSpan
.StartTime)
819
if (trace.
FirstSpan
.StartTime < current)
824
current = trace.
FirstSpan
.StartTime;
Aspire.Dashboard.Tests (20)
TelemetryRepositoryTests\TraceTests.cs (20)
85
AssertId("1-1", trace.
FirstSpan
.SpanId);
158
AssertId("1-1", trace.
FirstSpan
.SpanId);
234
AssertId("2-1", trace.
FirstSpan
.SpanId);
240
AssertId("1-2", trace.
FirstSpan
.SpanId);
275
AssertId("1-1", trace.
FirstSpan
.SpanId);
276
Assert.Equal("", trace.
FirstSpan
.Scope.ScopeName);
282
AssertId("2-1", trace.
FirstSpan
.SpanId);
283
Assert.Equal("", trace.
FirstSpan
.Scope.ScopeName);
329
AssertId("1-1", trace.
FirstSpan
.SpanId);
397
AssertId("1-1", trace.
FirstSpan
.SpanId);
398
Assert.Collection(trace.
FirstSpan
.Events,
473
AssertId("1-1", trace.
FirstSpan
.SpanId);
474
Assert.Collection(trace.
FirstSpan
.Links,
562
AssertId("1-1", trace.
FirstSpan
.SpanId);
644
AssertId("1-1", trace.
FirstSpan
.SpanId);
645
Assert.Collection(trace.
FirstSpan
.Attributes,
672
Assert.Equal(5, trace.
FirstSpan
.Events.Count);
673
Assert.Equal(5, trace.
FirstSpan
.Events[0].Attributes.Length);
771
var expectedOrder = traces.PagedResult.Items.OrderBy(t => t.
FirstSpan
.StartTime).Select(t => t.TraceId).ToList();
872
AssertId("1-2", trace.
FirstSpan
.SpanId); // First by time