21 references to KnownStructuredLogFields
Aspire.Dashboard (19)
Components\Controls\StructuredLogDetails.razor.cs (6)
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\StructuredLogs.razor.cs (3)
151
Field =
KnownStructuredLogFields
.TraceIdField, Condition = FilterCondition.Equals, Value = TraceId
158
Field =
KnownStructuredLogFields
.SpanIdField, Condition = FilterCondition.Equals, Value = SpanId
292
KnownKeys =
KnownStructuredLogFields
.AllFields,
Model\Otlp\TelemetryFilter.cs (5)
27
KnownStructuredLogFields
.MessageField => "Message",
28
KnownStructuredLogFields
.TraceIdField => "TraceId",
29
KnownStructuredLogFields
.SpanIdField => "SpanId",
30
KnownStructuredLogFields
.OriginalFormatField => "OriginalFormat",
31
KnownStructuredLogFields
.CategoryField => "Category",
Otlp\Model\OtlpLogEntry.cs (5)
99
KnownStructuredLogFields
.MessageField => log.Message,
100
KnownStructuredLogFields
.TraceIdField => log.TraceId,
101
KnownStructuredLogFields
.SpanIdField => log.SpanId,
102
KnownStructuredLogFields
.OriginalFormatField => log.OriginalFormat,
103
KnownStructuredLogFields
.CategoryField => log.Scope.ScopeName,
Aspire.Dashboard.Components.Tests (2)
Pages\StructuredLogsTests.cs (2)
55
Assert.Equal(
KnownStructuredLogFields
.TraceIdField, f.Field);
60
Assert.Equal(
KnownStructuredLogFields
.SpanIdField, f.Field);