14 instantiations of TelemetryPropertyViewModel
Aspire.Dashboard (14)
Components\Controls\SpanDetails.razor.cs (5)
39
ViewModel.Span.Source.AllProperties().Select(p => new
TelemetryPropertyViewModel
{ Name = p.DisplayName, Key = p.Key, Value = p.Value })
90
new
TelemetryPropertyViewModel
{ Name = "Source", Key = KnownSourceFields.NameField, Value = _viewModel.Span.Scope.ScopeName }
94
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "Version", Key = KnownSourceFields.VersionField, Value = _viewModel.Span.Scope.Version });
98
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "ParentId", Key = KnownTraceFields.ParentIdField, Value = _viewModel.Span.ParentSpanId });
102
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "TraceId", Key = KnownTraceFields.TraceIdField, Value = _viewModel.Span.TraceId });
Components\Controls\StructuredLogDetails.razor.cs (8)
32
ViewModel.LogEntry.ApplicationView.AllProperties().Select(p => new
TelemetryPropertyViewModel
{ Name = p.DisplayName, Key = p.Key, Value = p.Value })
58
.Select(a => new
TelemetryPropertyViewModel
{ Name = a.Key, Key = $"unknown-{a.Key}", Value = a.Value })
63
new
TelemetryPropertyViewModel
{ Name ="Category", Key = KnownStructuredLogFields.CategoryField, Value = _viewModel.LogEntry.Scope.ScopeName }
68
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "TraceId", Key = KnownStructuredLogFields.TraceIdField, Value = _viewModel.LogEntry.TraceId });
72
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "SpanId", Key = KnownStructuredLogFields.SpanIdField, Value = _viewModel.LogEntry.SpanId });
76
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "ParentId", Key = KnownStructuredLogFields.ParentIdField, Value = _viewModel.LogEntry.ParentId });
84
new
TelemetryPropertyViewModel
{ Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = _viewModel.LogEntry.Severity.ToString() },
85
new
TelemetryPropertyViewModel
{ Name = "Message", Key = KnownStructuredLogFields.MessageField, Value = _viewModel.LogEntry.Message },
Components\Pages\TraceDetail.razor.cs (1)
234
.Select(f => new
TelemetryPropertyViewModel
{ Name = f.DisplayName, Key = f.Key, Value = f.Value })
17 references to TelemetryPropertyViewModel
Aspire.Dashboard (16)
Components\Controls\SpanDetails.razor.cs (5)
32
private IQueryable<
TelemetryPropertyViewModel
> FilteredItems =>
35
private IQueryable<
TelemetryPropertyViewModel
> FilteredContextItems =>
38
private IQueryable<
TelemetryPropertyViewModel
> FilteredResourceItems =>
56
private List<
TelemetryPropertyViewModel
> _contextAttributes = null!;
65
private bool ApplyFilter(
TelemetryPropertyViewModel
vm)
Components\Controls\StructuredLogDetails.razor.cs (11)
22
internal IQueryable<
TelemetryPropertyViewModel
> FilteredItems =>
25
internal IQueryable<
TelemetryPropertyViewModel
> FilteredExceptionItems =>
28
internal IQueryable<
TelemetryPropertyViewModel
> FilteredContextItems =>
31
internal IQueryable<
TelemetryPropertyViewModel
> FilteredResourceItems =>
39
private List<
TelemetryPropertyViewModel
> _logEntryAttributes = null!;
40
private List<
TelemetryPropertyViewModel
> _contextAttributes = null!;
41
private List<
TelemetryPropertyViewModel
> _exceptionAttributes = null!;
104
private static void MoveAttributes(List<
TelemetryPropertyViewModel
> source, List<
TelemetryPropertyViewModel
> destination, Func<
TelemetryPropertyViewModel
, bool> predicate)
117
private bool ApplyFilter(
TelemetryPropertyViewModel
vm)
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
67
static void AssertUniqueKeys(IEnumerable<
TelemetryPropertyViewModel
> properties)