2 instantiations of OtlpLogEntry
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
345var logEntry = new OtlpLogEntry(record, applicationView, scope, _otlpContext);
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
35LogEntry = new OtlpLogEntry(
30 references to OtlpLogEntry
Aspire.Dashboard (27)
Components\Controls\StructuredLogActions.razor.cs (1)
37public required OtlpLogEntry LogEntry { get; set; }
Components\Pages\StructuredLogs.razor.cs (5)
45private FluentDataGrid<OtlpLogEntry> _dataGrid = null!; 116private async ValueTask<GridItemsProviderResult<OtlpLogEntry>> GetData(GridItemsProviderRequest<OtlpLogEntry> request) 256private async Task OnShowPropertiesAsync(OtlpLogEntry entry, string? buttonId) 356private string GetRowClass(OtlpLogEntry entry)
Components\ResourcesGridColumns\LogMessageColumnDisplay.razor.cs (1)
14_exceptionText = OtlpLogEntry.GetExceptionText(LogEntry);
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() });
Model\StructureLogsDetailsViewModel.cs (1)
10public required OtlpLogEntry LogEntry { get; init; }
Otlp\Model\OtlpLogEntry.cs (3)
110public static string? GetFieldValue(OtlpLogEntry log, string field) 128public static string? GetExceptionText(OtlpLogEntry logEntry) 149static string? GetProperty(OtlpLogEntry logEntry, string propertyName)
Otlp\Storage\TelemetryRepository.cs (6)
44private readonly CircularBuffer<OtlpLogEntry> _logs; 345var logEntry = new OtlpLogEntry(record, applicationView, scope, _otlpContext); 396public PagedResult<OtlpLogEntry> GetLogs(GetLogsContext context) 405return PagedResult<OtlpLogEntry>.Empty; 744foreach (var log in _logs) 746var 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);