35 references to FirstSpan
Aspire.Dashboard (15)
Components\Pages\TraceDetail.razor.cs (2)
230if (_tracesSubscription is null || _tracesSubscription.ApplicationKey != _trace.FirstSpan.Source.ApplicationKey) 233_tracesSubscription = TelemetryRepository.OnNewTraces(_trace.FirstSpan.Source.ApplicationKey, SubscriptionType.Read, () => InvokeAsync(async () =>
Model\Otlp\SpanWaterfallViewModel.cs (1)
135var 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)
973if (trace.FirstSpan.StartTime > currentTrace.FirstSpan.StartTime) 987if (trace.FirstSpan == newSpan) 995if (trace.FirstSpan.StartTime > currentTrace.FirstSpan.StartTime) 1117if (trace.FirstSpan.StartTime < current) 1122current = trace.FirstSpan.StartTime;
Aspire.Dashboard.Tests (20)
TelemetryRepositoryTests\TraceTests.cs (20)
91AssertId("1-1", trace.FirstSpan.SpanId); 331AssertId("1-1", trace.FirstSpan.SpanId); 408AssertId("2-1", trace.FirstSpan.SpanId); 414AssertId("1-2", trace.FirstSpan.SpanId); 450AssertId("1-1", trace.FirstSpan.SpanId); 451Assert.Same(OtlpScope.Empty, trace.FirstSpan.Scope); 457AssertId("2-1", trace.FirstSpan.SpanId); 458Assert.Same(OtlpScope.Empty, trace.FirstSpan.Scope); 505AssertId("1-1", trace.FirstSpan.SpanId); 574AssertId("1-1", trace.FirstSpan.SpanId); 575Assert.Collection(trace.FirstSpan.Events, 651AssertId("1-1", trace.FirstSpan.SpanId); 652Assert.Collection(trace.FirstSpan.Links, 741AssertId("1-1", trace.FirstSpan.SpanId); 825AssertId("1-1", trace.FirstSpan.SpanId); 826Assert.Collection(trace.FirstSpan.Attributes, 853Assert.Equal(5, trace.FirstSpan.Events.Count); 854Assert.Equal(5, trace.FirstSpan.Events[0].Attributes.Length); 954var expectedOrder = traces.PagedResult.Items.OrderBy(t => t.FirstSpan.StartTime).Select(t => t.TraceId).ToList(); 1056AssertId("1-2", trace.FirstSpan.SpanId); // First by time