2 instantiations of OtlpLogEntry
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
346var logEntry = new OtlpLogEntry(record, applicationView, scope, _otlpContext);
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
35LogEntry = new OtlpLogEntry(
25 references to OtlpLogEntry
Aspire.Dashboard (22)
Components\Pages\StructuredLogs.razor.cs (5)
44private FluentDataGrid<OtlpLogEntry> _dataGrid = null!; 112private async ValueTask<GridItemsProviderResult<OtlpLogEntry>> GetData(GridItemsProviderRequest<OtlpLogEntry> request) 251private async Task OnShowPropertiesAsync(OtlpLogEntry entry, string? buttonId) 351private string GetRowClass(OtlpLogEntry entry)
Model\Otlp\TelemetryFilter.cs (6)
100public IEnumerable<OtlpLogEntry> Apply(IEnumerable<OtlpLogEntry> input) 104case nameof(OtlpLogEntry.TimeStamp): 110case nameof(OtlpLogEntry.Severity): 119case nameof(OtlpLogEntry.Message): 127return 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)
44private readonly CircularBuffer<OtlpLogEntry> _logs; 346var logEntry = new OtlpLogEntry(record, applicationView, scope, _otlpContext); 397public PagedResult<OtlpLogEntry> GetLogs(GetLogsContext context) 406return PagedResult<OtlpLogEntry>.Empty; 737foreach (var log in _logs) 739var value = OtlpLogEntry.GetFieldValue(log, attributeName);
Aspire.Dashboard.Tests (3)
TelemetryRepositoryTests\LogTests.cs (3)
813Filters = [new TelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(OtlpLogEntry.Message), Value = "does_not_contain" }] 821Filters = [new TelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(OtlpLogEntry.Message), Value = "message" }] 1213var log = Assert.Single(logs.Items);