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)
144
NavigationManager.NavigateTo(DashboardUrls.StructuredLogsUrl(traceId:
_trace
?.TraceId));
218
if (
_trace
is null)
223
var headerSpan =
_trace
.RootOrFirstSpan;
229
if (TraceId !=
_trace
?.TraceId)
261
if (
_trace
is { } trace)
288
if (
_trace
== null ||
_trace
.TraceId != TraceId || TelemetryRepository.HasUpdatedTrace(
_trace
))
294
if (
_trace
== null)
316
Value =
_trace
.TraceId
321
Logger.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));
326
foreach (var span in
_trace
.Spans)
357
if (
_trace
== null)
363
if (_tracesSubscription is null || _tracesSubscription.ResourceKey !=
_trace
.FirstSpan.Source.ResourceKey)
366
_tracesSubscription = TelemetryRepository.OnNewTraces(
_trace
.FirstSpan.Source.ResourceKey, SubscriptionType.Read, () => InvokeAsync(async () =>
368
if (
_trace
== null)
374
if (TelemetryRepository.HasUpdatedTrace(
_trace
))
578
if (
_trace
is { } trace)
Components_Pages_TraceDetail_razor.g.cs (4)
285
if (
_trace
is { } trace)
2951
Debug.Assert(
_trace
!= null, "Trace should be available here");
2986
FormatHelpers.FormatDateTime(TimeProvider,
_trace
.FirstSpan.StartTime, MillisecondsDisplay.Full)
2995
__builder4.AddContent(389, FormatHelpers.FormatTimeWithOptionalDate(TimeProvider,
_trace
.FirstSpan.StartTime, MillisecondsDisplay.Truncated)