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