40 references to FirstSpan
Aspire.Dashboard (20)
Components\Pages\TraceDetail.razor.cs (2)
363
if (_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)
342
var startTime = ViewModel.Span.StartTime - ViewModel.Span.Trace.
FirstSpan
.StartTime;
Components_Pages_TraceDetail_razor.g.cs (2)
2986
FormatHelpers.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)
1362
context => 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)
149
var traceStart = span.Trace.
FirstSpan
.StartTime;
Otlp\Model\OtlpTrace.cs (5)
19
public DateTime TimeStamp =>
FirstSpan
.StartTime;
21
public OtlpSpan RootOrFirstSpan => RootSpan ??
FirstSpan
;
163
var start =
FirstSpan
.StartTime;
177
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)
1031
if (trace.
FirstSpan
.StartTime > currentTrace.
FirstSpan
.StartTime)
1045
if (trace.
FirstSpan
== newSpan)
1053
if (trace.
FirstSpan
.StartTime > currentTrace.
FirstSpan
.StartTime)
1189
if (trace.
FirstSpan
.StartTime < current)
1194
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