33 references to FirstSpan
Aspire.Dashboard (8)
Components\Pages\TraceDetail.razor.cs (2)
343if (_tracesSubscription is null || _tracesSubscription.ResourceKey != _trace.FirstSpan.Source.ResourceKey) 346_tracesSubscription = TelemetryRepository.OnNewTraces(_trace.FirstSpan.Source.ResourceKey, SubscriptionType.Read, () => InvokeAsync(async () =>
Model\Otlp\SpanWaterfallViewModel.cs (1)
91var traceStart = span.Trace.FirstSpan.StartTime;
Otlp\Model\OtlpTrace.cs (5)
19public DateTime TimeStamp => FirstSpan.StartTime; 21public OtlpSpan RootOrFirstSpan => RootSpan ?? FirstSpan; 156var start = FirstSpan.StartTime; 170return $@"TraceId = ""{TraceId}"", Spans = {Spans.Count}, StartDate = {FirstSpan?.StartTime.ToLocalTime():yyyy:MM:dd}, StartTime = {FirstSpan?.StartTime.ToLocalTime():h:mm:ss.fff tt}, Duration = {Duration}";
Aspire.Dashboard.Tests (25)
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (5)
358eventId = Assert.Single(trace.FirstSpan.Events).InternalId; 364Assert.Equal("TestSource", trace.FirstSpan.Scope.Name); 365Assert.Equal(KeyValuePair.Create("span-key", "span-value"), Assert.Single(trace.FirstSpan.Attributes)); 366var spanEvent = Assert.Single(trace.FirstSpan.Events); 369var persistedLink = Assert.Single(trace.FirstSpan.Links);
TelemetryRepositoryTests\TraceTests.cs (20)
91AssertId("1-1", trace.FirstSpan.SpanId); 219Assert.Equal(s_testTime.AddMinutes(2), latestTrace.FirstSpan.StartTime); 797AssertId("1-1", trace.FirstSpan.SpanId); 873AssertId("2-1", trace.FirstSpan.SpanId); 879AssertId("1-2", trace.FirstSpan.SpanId); 914AssertId("1-1", trace.FirstSpan.SpanId); 915Assert.Same(OtlpScope.Empty, trace.FirstSpan.Scope); 921AssertId("2-1", trace.FirstSpan.SpanId); 922Assert.Same(OtlpScope.Empty, trace.FirstSpan.Scope); 968AssertId("1-1", trace.FirstSpan.SpanId); 1036AssertId("1-1", trace.FirstSpan.SpanId); 1037Assert.Collection(trace.FirstSpan.Events, 1112AssertId("1-1", trace.FirstSpan.SpanId); 1113Assert.Collection(trace.FirstSpan.Links, 1178AssertId("1-1", trace.FirstSpan.SpanId); 1260AssertId("1-1", trace.FirstSpan.SpanId); 1261Assert.Collection(trace.FirstSpan.Attributes, 1288Assert.Equal(5, trace.FirstSpan.Events.Count); 1289Assert.Equal(5, trace.FirstSpan.Events[0].Attributes.Length); 1488AssertId("1-2", trace.FirstSpan.SpanId); // First by time