1 instantiation of SpanWaterfallViewModel
Aspire.Dashboard (1)
Model\Otlp\SpanWaterfallViewModel.cs (1)
155var viewModel = new SpanWaterfallViewModel
22 references to SpanWaterfallViewModel
Aspire.Dashboard (19)
Components\Controls\Chart\PlotlyChart.razor.cs (1)
157? SpanWaterfallViewModel.GetTitle(exemplar.Span, Applications)
Components\Dialogs\ExemplarsDialog.razor.cs (1)
57? SpanWaterfallViewModel.GetTitle(exemplar.Span, Content.Applications)
Components\Pages\TraceDetail.razor.cs (11)
27private List<SpanWaterfallViewModel>? _spanWaterfallViewModels; 32private FluentDataGrid<SpanWaterfallViewModel> _dataGrid = null!; 77private ValueTask<GridItemsProviderResult<SpanWaterfallViewModel>> GetData(GridItemsProviderRequest<SpanWaterfallViewModel> request) 90return ValueTask.FromResult(new GridItemsProviderResult<SpanWaterfallViewModel> 155_spanWaterfallViewModels = SpanWaterfallViewModel.Create(_trace, new SpanWaterfallViewModel.TraceDetailState(OutgoingPeerResolvers, _collapsedSpanIds)); 180private string GetRowClass(SpanWaterfallViewModel viewModel) 193private async Task OnToggleCollapse(SpanWaterfallViewModel viewModel) 211private async Task OnShowPropertiesAsync(SpanWaterfallViewModel viewModel, string? buttonId) 235Title = SpanWaterfallViewModel.GetTitle(viewModel.Span, _applications),
Model\Otlp\SpanWaterfallViewModel.cs (6)
117private readonly record struct SpanWaterfallViewModelState(SpanWaterfallViewModel? Parent, int Depth, bool Hidden); 121public static List<SpanWaterfallViewModel> Create(OtlpTrace trace, TraceDetailState state) 123var orderedSpans = new List<SpanWaterfallViewModel>(); 127var viewModel = CreateViewModel(span, s.Depth, s.Hidden, state); 137static SpanWaterfallViewModel CreateViewModel(OtlpSpan span, int depth, bool hidden, TraceDetailState state) 155var viewModel = new SpanWaterfallViewModel
Aspire.Dashboard.Components.Tests (1)
Pages\TraceDetailsTests.cs (1)
126var grid = cut.FindComponent<FluentDataGrid<SpanWaterfallViewModel>>();
Aspire.Dashboard.Tests (2)
Model\SpanWaterfallViewModelTests.cs (2)
28var vm = SpanWaterfallViewModel.Create(trace, new SpanWaterfallViewModel.TraceDetailState([], []));