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)
151Field = KnownStructuredLogFields.TraceIdField, Condition = FilterCondition.Equals, Value = TraceId 158Field = KnownStructuredLogFields.SpanIdField, Condition = FilterCondition.Equals, Value = SpanId 292KnownKeys = 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)
99KnownStructuredLogFields.MessageField => log.Message, 100KnownStructuredLogFields.TraceIdField => log.TraceId, 101KnownStructuredLogFields.SpanIdField => log.SpanId, 102KnownStructuredLogFields.OriginalFormatField => log.OriginalFormat, 103KnownStructuredLogFields.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);