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