1 write to _trace
Aspire.Dashboard (1)
Components\Pages\TraceDetail.razor.cs (1)
286
_trace
= (TraceId != null) ? TelemetryRepository.GetTrace(TraceId) : null;
21 references to _trace
Aspire.Dashboard (21)
Components\Pages\TraceDetail.razor.cs (21)
135
if (
_trace
is null)
165
TraceMenuBuilder.AddMenuItems(_traceActionsMenuItems,
_trace
, showViewDetails: false);
213
if (
_trace
is null)
218
var headerSpan =
_trace
.RootOrFirstSpan;
224
if (TraceId !=
_trace
?.TraceId)
256
if (
_trace
is { } trace)
283
if (
_trace
== null ||
_trace
.TraceId != TraceId || TelemetryRepository.HasUpdatedTrace(
_trace
))
289
if (
_trace
== null)
302
var result = TelemetryRepository.GetLogsForTrace(
_trace
.TraceId);
304
Logger.LogInformation("Trace '{TraceId}' has {SpanCount} spans.",
_trace
.TraceId,
_trace
.Spans.Count);
305
_spanWaterfallViewModels = SpanWaterfallViewModel.Create(
_trace
, result, new SpanWaterfallViewModel.TraceDetailState(OutgoingPeerResolvers.ToArray(), _collapsedSpanIds, _resources));
309
foreach (var span in
_trace
.Spans)
340
if (
_trace
== null)
346
if (_tracesSubscription is null || _tracesSubscription.ResourceKey !=
_trace
.FirstSpan.Source.ResourceKey)
349
_tracesSubscription = TelemetryRepository.OnNewTraces(
_trace
.FirstSpan.Source.ResourceKey, SubscriptionType.Read, () => InvokeAsync(async () =>
351
if (
_trace
== null)
357
if (TelemetryRepository.HasUpdatedTrace(
_trace
))
559
if (
_trace
is { } trace)