40 references to FirstSpan
Aspire.Dashboard (20)
Components\Pages\TraceDetail.razor.cs (2)
363if (_tracesSubscription is null || _tracesSubscription.ResourceKey != _trace.FirstSpan.Source.ResourceKey) 366_tracesSubscription = TelemetryRepository.OnNewTraces(_trace.FirstSpan.Source.ResourceKey, SubscriptionType.Read, () => InvokeAsync(async () =>
Components_Controls_SpanDetails_razor.g.cs (1)
342var startTime = ViewModel.Span.StartTime - ViewModel.Span.Trace.FirstSpan.StartTime;
Components_Pages_TraceDetail_razor.g.cs (2)
2986FormatHelpers.FormatDateTime(TimeProvider, _trace.FirstSpan.StartTime, MillisecondsDisplay.Full) 2995__builder4.AddContent(389, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, _trace.FirstSpan.StartTime, MillisecondsDisplay.Truncated)
Components_Pages_Traces_razor.g.cs (2)
1362context => FormatHelpers.FormatDateTime(TimeProvider, context.FirstSpan.StartTime, MillisecondsDisplay.Full, CultureInfo.CurrentCulture) 1378__builder5.AddContent(127, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, context.FirstSpan.StartTime, MillisecondsDisplay.Truncated)
Model\Otlp\SpanWaterfallViewModel.cs (1)
149var traceStart = span.Trace.FirstSpan.StartTime;
Otlp\Model\OtlpTrace.cs (5)
19public DateTime TimeStamp => FirstSpan.StartTime; 21public OtlpSpan RootOrFirstSpan => RootSpan ?? FirstSpan; 163var start = FirstSpan.StartTime; 177return $@"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)
1031if (trace.FirstSpan.StartTime > currentTrace.FirstSpan.StartTime) 1045if (trace.FirstSpan == newSpan) 1053if (trace.FirstSpan.StartTime > currentTrace.FirstSpan.StartTime) 1189if (trace.FirstSpan.StartTime < current) 1194current = 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