1 instantiation of OtlpLogEntry
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
315
var logEntry = new
OtlpLogEntry
(record, application, scope, _dashboardOptions.TelemetryLimits);
20 references to OtlpLogEntry
Aspire.Dashboard (18)
Components\Pages\StructuredLogs.razor.cs (4)
104
private async ValueTask<GridItemsProviderResult<
OtlpLogEntry
>> GetData(GridItemsProviderRequest<
OtlpLogEntry
> request)
234
private async Task OnShowPropertiesAsync(
OtlpLogEntry
entry, string? buttonId)
349
private string GetRowClass(
OtlpLogEntry
entry)
Model\Otlp\LogFilter.cs (6)
100
private string? GetFieldValue(
OtlpLogEntry
x)
114
public IEnumerable<
OtlpLogEntry
> Apply(IEnumerable<
OtlpLogEntry
> input)
118
case nameof(
OtlpLogEntry
.TimeStamp):
124
case nameof(
OtlpLogEntry
.Severity):
133
case nameof(
OtlpLogEntry
.Message):
Model\StructuredLogsViewModel.cs (4)
15
private PagedResult<
OtlpLogEntry
>? _logs;
72
public PagedResult<
OtlpLogEntry
> GetLogs()
80
filters.Add(new LogFilter { Field = nameof(
OtlpLogEntry
.Message), Condition = FilterCondition.Contains, Value = FilterText });
85
filters.Add(new LogFilter { Field = nameof(
OtlpLogEntry
.Severity), Condition = FilterCondition.GreaterThanOrEqual, Value = _logLevel.Value.ToString() });
Otlp\Storage\TelemetryRepository.cs (4)
37
private readonly CircularBuffer<
OtlpLogEntry
> _logs;
315
var
logEntry = new OtlpLogEntry(record, application, scope, _dashboardOptions.TelemetryLimits);
371
public PagedResult<
OtlpLogEntry
> GetLogs(GetLogsContext context)
380
return PagedResult<
OtlpLogEntry
>.Empty;
Aspire.Dashboard.Tests (2)
TelemetryRepositoryTests\LogTests.cs (2)
748
Filters = [new LogFilter { Condition = FilterCondition.Contains, Field = nameof(
OtlpLogEntry
.Message), Value = "does_not_contain" }]
756
Filters = [new LogFilter { Condition = FilterCondition.Contains, Field = nameof(
OtlpLogEntry
.Message), Value = "message" }]