21 references to KnownStructuredLogFields
Aspire.Dashboard (19)
Components\Controls\StructuredLogDetails.razor.cs (6)
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\StructuredLogs.razor.cs (3)
156
Field =
KnownStructuredLogFields
.TraceIdField, Condition = FilterCondition.Equals, Value = TraceId
163
Field =
KnownStructuredLogFields
.SpanIdField, Condition = FilterCondition.Equals, Value = SpanId
298
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)
112
KnownStructuredLogFields
.MessageField => log.Message,
113
KnownStructuredLogFields
.TraceIdField => log.TraceId,
114
KnownStructuredLogFields
.SpanIdField => log.SpanId,
115
KnownStructuredLogFields
.OriginalFormatField => log.OriginalFormat,
116
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);