1 write to _trace
Aspire.Dashboard (1)
Components\Pages\TraceDetail.razor.cs (1)
291_trace = (TraceId != null) ? TelemetryRepository.GetTrace(TraceId) : null;
24 references to _trace
Aspire.Dashboard (24)
Components\Pages\TraceDetail.razor.cs (20)
144NavigationManager.NavigateTo(DashboardUrls.StructuredLogsUrl(traceId: _trace?.TraceId)); 218if (_trace is null) 223var headerSpan = _trace.RootOrFirstSpan; 229if (TraceId != _trace?.TraceId) 261if (_trace is { } trace) 288if (_trace == null || _trace.TraceId != TraceId || TelemetryRepository.HasUpdatedTrace(_trace)) 294if (_trace == null) 316Value = _trace.TraceId 321Logger.LogInformation("Trace '{TraceId}' has {SpanCount} spans.", _trace.TraceId, _trace.Spans.Count); 322_spanWaterfallViewModels = SpanWaterfallViewModel.Create(_trace, result.Items, new SpanWaterfallViewModel.TraceDetailState(OutgoingPeerResolvers.ToArray(), _collapsedSpanIds, _resources)); 326foreach (var span in _trace.Spans) 357if (_trace == null) 363if (_tracesSubscription is null || _tracesSubscription.ResourceKey != _trace.FirstSpan.Source.ResourceKey) 366_tracesSubscription = TelemetryRepository.OnNewTraces(_trace.FirstSpan.Source.ResourceKey, SubscriptionType.Read, () => InvokeAsync(async () => 368if (_trace == null) 374if (TelemetryRepository.HasUpdatedTrace(_trace)) 578if (_trace is { } trace)
Components_Pages_TraceDetail_razor.g.cs (4)
285if (_trace is { } trace) 2951Debug.Assert(_trace != null, "Trace should be available here"); 2986FormatHelpers.FormatDateTime(TimeProvider, _trace.FirstSpan.StartTime, MillisecondsDisplay.Full) 2995__builder4.AddContent(389, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider, _trace.FirstSpan.StartTime, MillisecondsDisplay.Truncated)