2 instantiations of OtlpLogEntry
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
330var logEntry = new OtlpLogEntry(record, applicationView, scope, _otlpContext);
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
36LogEntry = new OtlpLogEntry(
25 references to OtlpLogEntry
Aspire.Dashboard (22)
Components\Pages\StructuredLogs.razor.cs (5)
44private FluentDataGrid<OtlpLogEntry> _dataGrid = null!; 109private async ValueTask<GridItemsProviderResult<OtlpLogEntry>> GetData(GridItemsProviderRequest<OtlpLogEntry> request) 245private async Task OnShowPropertiesAsync(OtlpLogEntry entry, string? buttonId) 337private string GetRowClass(OtlpLogEntry entry)
Model\Otlp\TelemetryFilter.cs (6)
99public IEnumerable<OtlpLogEntry> Apply(IEnumerable<OtlpLogEntry> input) 103case nameof(OtlpLogEntry.TimeStamp): 109case nameof(OtlpLogEntry.Severity): 118case nameof(OtlpLogEntry.Message): 126return input.Where(x => func(OtlpLogEntry.GetFieldValue(x, Field), Value));
Model\StructuredLogsViewModel.cs (4)
15private PagedResult<OtlpLogEntry>? _logs; 77public PagedResult<OtlpLogEntry> GetLogs() 85filters.Add(new TelemetryFilter { Field = nameof(OtlpLogEntry.Message), Condition = FilterCondition.Contains, Value = FilterText }); 90filters.Add(new TelemetryFilter { Field = nameof(OtlpLogEntry.Severity), Condition = FilterCondition.GreaterThanOrEqual, Value = _logLevel.Value.ToString() });
Otlp\Model\OtlpLogEntry.cs (1)
108public static string? GetFieldValue(OtlpLogEntry log, string field)
Otlp\Storage\TelemetryRepository.cs (6)
38private readonly CircularBuffer<OtlpLogEntry> _logs; 330var logEntry = new OtlpLogEntry(record, applicationView, scope, _otlpContext); 381public PagedResult<OtlpLogEntry> GetLogs(GetLogsContext context) 390return PagedResult<OtlpLogEntry>.Empty; 719foreach (var log in _logs) 721var value = OtlpLogEntry.GetFieldValue(log, attributeName);
Aspire.Dashboard.Tests (3)
TelemetryRepositoryTests\LogTests.cs (3)
814Filters = [new TelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(OtlpLogEntry.Message), Value = "does_not_contain" }] 822Filters = [new TelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(OtlpLogEntry.Message), Value = "message" }] 1214var log = Assert.Single(logs.Items);