21 references to KnownStructuredLogFields
Aspire.Dashboard (19)
Components\Controls\StructuredLogDetails.razor.cs (6)
47new 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 }); 68new TelemetryPropertyViewModel { Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = ViewModel.LogEntry.Severity.ToString() }, 69new TelemetryPropertyViewModel { Name = "Message", Key = KnownStructuredLogFields.MessageField, Value = ViewModel.LogEntry.Message },
Components\Pages\StructuredLogs.razor.cs (3)
149Field = KnownStructuredLogFields.TraceIdField, Condition = FilterCondition.Equals, Value = TraceId 156Field = KnownStructuredLogFields.SpanIdField, Condition = FilterCondition.Equals, Value = SpanId 290KnownKeys = KnownStructuredLogFields.AllFields,
Model\Otlp\TelemetryFilter.cs (5)
27KnownStructuredLogFields.MessageField => "Message", 28KnownStructuredLogFields.TraceIdField => "TraceId", 29KnownStructuredLogFields.SpanIdField => "SpanId", 30KnownStructuredLogFields.OriginalFormatField => "OriginalFormat", 31KnownStructuredLogFields.CategoryField => "Category",
Otlp\Model\OtlpLogEntry.cs (5)
97KnownStructuredLogFields.MessageField => log.Message, 98KnownStructuredLogFields.TraceIdField => log.TraceId, 99KnownStructuredLogFields.SpanIdField => log.SpanId, 100KnownStructuredLogFields.OriginalFormatField => log.OriginalFormat, 101KnownStructuredLogFields.CategoryField => log.Scope.ScopeName,
Aspire.Dashboard.Components.Tests (2)
Pages\StructuredLogsTests.cs (2)
55Assert.Equal(KnownStructuredLogFields.TraceIdField, f.Field); 60Assert.Equal(KnownStructuredLogFields.SpanIdField, f.Field);