33 references to FirstSpan
Aspire.Dashboard (13)
Model\Otlp\SpanWaterfallViewModel.cs (1)
139var traceStart = span.Trace.FirstSpan.StartTime;
Otlp\Model\OtlpTrace.cs (5)
18public DateTime TimeStamp => FirstSpan.StartTime; 20public OtlpSpan RootOrFirstSpan => RootSpan ?? FirstSpan; 25var start = FirstSpan.StartTime; 171return $@"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)
942if (trace.FirstSpan.StartTime > currentTrace.FirstSpan.StartTime) 956if (trace.FirstSpan == newSpan) 964if (trace.FirstSpan.StartTime > currentTrace.FirstSpan.StartTime) 1035if (trace.FirstSpan.StartTime < current) 1040current = trace.FirstSpan.StartTime;
Aspire.Dashboard.Tests (20)
TelemetryRepositoryTests\TraceTests.cs (20)
89AssertId("1-1", trace.FirstSpan.SpanId); 329AssertId("1-1", trace.FirstSpan.SpanId); 406AssertId("2-1", trace.FirstSpan.SpanId); 412AssertId("1-2", trace.FirstSpan.SpanId); 448AssertId("1-1", trace.FirstSpan.SpanId); 449Assert.Equal("", trace.FirstSpan.Scope.ScopeName); 455AssertId("2-1", trace.FirstSpan.SpanId); 456Assert.Equal("", trace.FirstSpan.Scope.ScopeName); 503AssertId("1-1", trace.FirstSpan.SpanId); 572AssertId("1-1", trace.FirstSpan.SpanId); 573Assert.Collection(trace.FirstSpan.Events, 649AssertId("1-1", trace.FirstSpan.SpanId); 650Assert.Collection(trace.FirstSpan.Links, 739AssertId("1-1", trace.FirstSpan.SpanId); 823AssertId("1-1", trace.FirstSpan.SpanId); 824Assert.Collection(trace.FirstSpan.Attributes, 851Assert.Equal(5, trace.FirstSpan.Events.Count); 852Assert.Equal(5, trace.FirstSpan.Events[0].Attributes.Length); 952var expectedOrder = traces.PagedResult.Items.OrderBy(t => t.FirstSpan.StartTime).Select(t => t.TraceId).ToList(); 1054AssertId("1-2", trace.FirstSpan.SpanId); // First by time