21 references to KnownStructuredLogFields
Aspire.Dashboard (19)
Components\Controls\StructuredLogDetails.razor.cs (6)
63new 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 }); 84new TelemetryPropertyViewModel { Name = "Level", Key = KnownStructuredLogFields.LevelField, Value = _viewModel.LogEntry.Severity.ToString() }, 85new TelemetryPropertyViewModel { Name = "Message", Key = KnownStructuredLogFields.MessageField, Value = _viewModel.LogEntry.Message },
Components\Pages\StructuredLogs.razor.cs (3)
156Field = KnownStructuredLogFields.TraceIdField, Condition = FilterCondition.Equals, Value = TraceId 163Field = KnownStructuredLogFields.SpanIdField, Condition = FilterCondition.Equals, Value = SpanId 298KnownKeys = 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)
112KnownStructuredLogFields.MessageField => log.Message, 113KnownStructuredLogFields.TraceIdField => log.TraceId, 114KnownStructuredLogFields.SpanIdField => log.SpanId, 115KnownStructuredLogFields.OriginalFormatField => log.OriginalFormat, 116KnownStructuredLogFields.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);