14 instantiations of TelemetryPropertyViewModel
Aspire.Dashboard (14)
Components\Controls\SpanDetails.razor.cs (5)
35
ViewModel.Span.Source.AllProperties().Select(p => new
TelemetryPropertyViewModel
{ Name = p.DisplayName, Key = p.Key, Value = p.Value })
66
new
TelemetryPropertyViewModel
{ Name = "Source", Key = KnownSourceFields.NameField, Value = ViewModel.Span.Scope.ScopeName }
70
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "Version", Key = KnownSourceFields.VersionField, Value = ViewModel.Span.Scope.ScopeName });
74
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "ParentId", Key = KnownTraceFields.ParentIdField, Value = ViewModel.Span.ParentSpanId });
78
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "TraceId", Key = KnownTraceFields.TraceIdField, Value = ViewModel.Span.TraceId });
Components\Controls\StructuredLogDetails.razor.cs (8)
28
ViewModel.LogEntry.ApplicationView.AllProperties().Select(p => new
TelemetryPropertyViewModel
{ Name = p.DisplayName, Key = p.Key, Value = p.Value })
42
.Select(a => new
TelemetryPropertyViewModel
{ Name = a.Key, Key = $"unknown-{a.Key}", Value = a.Value })
47
new
TelemetryPropertyViewModel
{ Name ="Category", Key = KnownStructuredLogFields.CategoryField, Value = ViewModel.LogEntry.Scope.ScopeName }
52
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "TraceId", Key = KnownStructuredLogFields.TraceIdField, Value = ViewModel.LogEntry.TraceId });
56
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "SpanId", Key = KnownStructuredLogFields.SpanIdField, Value = ViewModel.LogEntry.SpanId });
60
_contextAttributes.Add(new
TelemetryPropertyViewModel
{ Name = "ParentId", Key = KnownStructuredLogFields.ParentIdField, Value = ViewModel.LogEntry.ParentId });
68
new
TelemetryPropertyViewModel
{ Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = ViewModel.LogEntry.Severity.ToString() },
69
new
TelemetryPropertyViewModel
{ Name = "Message", Key = KnownStructuredLogFields.MessageField, Value = ViewModel.LogEntry.Message },
Components\Pages\TraceDetail.razor.cs (1)
222
.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)
28
private IQueryable<
TelemetryPropertyViewModel
> FilteredItems =>
31
private IQueryable<
TelemetryPropertyViewModel
> FilteredContextItems =>
34
private IQueryable<
TelemetryPropertyViewModel
> FilteredResourceItems =>
52
private List<
TelemetryPropertyViewModel
> _contextAttributes = null!;
56
private bool ApplyFilter(
TelemetryPropertyViewModel
vm)
Components\Controls\StructuredLogDetails.razor.cs (11)
18
internal IQueryable<
TelemetryPropertyViewModel
> FilteredItems =>
21
internal IQueryable<
TelemetryPropertyViewModel
> FilteredExceptionItems =>
24
internal IQueryable<
TelemetryPropertyViewModel
> FilteredContextItems =>
27
internal IQueryable<
TelemetryPropertyViewModel
> FilteredResourceItems =>
33
private List<
TelemetryPropertyViewModel
> _logEntryAttributes = null!;
34
private List<
TelemetryPropertyViewModel
> _contextAttributes = null!;
35
private List<
TelemetryPropertyViewModel
> _exceptionAttributes = null!;
74
private static void MoveAttributes(List<
TelemetryPropertyViewModel
> source, List<
TelemetryPropertyViewModel
> desintation, Func<
TelemetryPropertyViewModel
, bool> predicate)
87
private bool ApplyFilter(
TelemetryPropertyViewModel
vm)
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
67
static void AssertUniqueKeys(IEnumerable<
TelemetryPropertyViewModel
> properties)