35 references to FirstSpan
Aspire.Dashboard (15)
Components\Pages\TraceDetail.razor.cs (2)
230
if (_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)
135
var traceStart = span.Trace.
FirstSpan
.StartTime;
Otlp\Model\OtlpTrace.cs (5)
18
public DateTime TimeStamp =>
FirstSpan
.StartTime;
20
public OtlpSpan RootOrFirstSpan => RootSpan ??
FirstSpan
;
25
var start =
FirstSpan
.StartTime;
171
return $@"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)
973
if (trace.
FirstSpan
.StartTime > currentTrace.
FirstSpan
.StartTime)
987
if (trace.
FirstSpan
== newSpan)
995
if (trace.
FirstSpan
.StartTime > currentTrace.
FirstSpan
.StartTime)
1117
if (trace.
FirstSpan
.StartTime < current)
1122
current = trace.
FirstSpan
.StartTime;
Aspire.Dashboard.Tests (20)
TelemetryRepositoryTests\TraceTests.cs (20)
91
AssertId("1-1", trace.
FirstSpan
.SpanId);
331
AssertId("1-1", trace.
FirstSpan
.SpanId);
408
AssertId("2-1", trace.
FirstSpan
.SpanId);
414
AssertId("1-2", trace.
FirstSpan
.SpanId);
450
AssertId("1-1", trace.
FirstSpan
.SpanId);
451
Assert.Same(OtlpScope.Empty, trace.
FirstSpan
.Scope);
457
AssertId("2-1", trace.
FirstSpan
.SpanId);
458
Assert.Same(OtlpScope.Empty, trace.
FirstSpan
.Scope);
505
AssertId("1-1", trace.
FirstSpan
.SpanId);
574
AssertId("1-1", trace.
FirstSpan
.SpanId);
575
Assert.Collection(trace.
FirstSpan
.Events,
651
AssertId("1-1", trace.
FirstSpan
.SpanId);
652
Assert.Collection(trace.
FirstSpan
.Links,
741
AssertId("1-1", trace.
FirstSpan
.SpanId);
825
AssertId("1-1", trace.
FirstSpan
.SpanId);
826
Assert.Collection(trace.
FirstSpan
.Attributes,
853
Assert.Equal(5, trace.
FirstSpan
.Events.Count);
854
Assert.Equal(5, trace.
FirstSpan
.Events[0].Attributes.Length);
954
var expectedOrder = traces.PagedResult.Items.OrderBy(t => t.
FirstSpan
.StartTime).Select(t => t.TraceId).ToList();
1056
AssertId("1-2", trace.
FirstSpan
.SpanId); // First by time