2 instantiations of OtlpLogEntry
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
345
var logEntry = new
OtlpLogEntry
(record, applicationView, scope, _otlpContext);
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
35
LogEntry = new
OtlpLogEntry
(
30 references to OtlpLogEntry
Aspire.Dashboard (27)
Components\Controls\StructuredLogActions.razor.cs (1)
37
public required
OtlpLogEntry
LogEntry { get; set; }
Components\Pages\StructuredLogs.razor.cs (5)
45
private FluentDataGrid<
OtlpLogEntry
> _dataGrid = null!;
116
private async ValueTask<GridItemsProviderResult<
OtlpLogEntry
>> GetData(GridItemsProviderRequest<
OtlpLogEntry
> request)
256
private async Task OnShowPropertiesAsync(
OtlpLogEntry
entry, string? buttonId)
356
private string GetRowClass(
OtlpLogEntry
entry)
Components\ResourcesGridColumns\LogMessageColumnDisplay.razor.cs (1)
14
_exceptionText =
OtlpLogEntry
.GetExceptionText(LogEntry);
Model\Otlp\TelemetryFilter.cs (6)
100
public IEnumerable<
OtlpLogEntry
> Apply(IEnumerable<
OtlpLogEntry
> input)
104
case nameof(
OtlpLogEntry
.TimeStamp):
110
case nameof(
OtlpLogEntry
.Severity):
119
case nameof(
OtlpLogEntry
.Message):
127
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() });
Model\StructureLogsDetailsViewModel.cs (1)
10
public required
OtlpLogEntry
LogEntry { get; init; }
Otlp\Model\OtlpLogEntry.cs (3)
110
public static string? GetFieldValue(
OtlpLogEntry
log, string field)
128
public static string? GetExceptionText(
OtlpLogEntry
logEntry)
149
static string? GetProperty(
OtlpLogEntry
logEntry, string propertyName)
Otlp\Storage\TelemetryRepository.cs (6)
44
private readonly CircularBuffer<
OtlpLogEntry
> _logs;
345
var
logEntry = new OtlpLogEntry(record, applicationView, scope, _otlpContext);
396
public PagedResult<
OtlpLogEntry
> GetLogs(GetLogsContext context)
405
return PagedResult<
OtlpLogEntry
>.Empty;
744
foreach (
var
log in _logs)
746
var value =
OtlpLogEntry
.GetFieldValue(log, attributeName);
Aspire.Dashboard.Tests (3)
TelemetryRepositoryTests\LogTests.cs (3)
813
Filters = [new TelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(
OtlpLogEntry
.Message), Value = "does_not_contain" }]
821
Filters = [new TelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(
OtlpLogEntry
.Message), Value = "message" }]
1213
var
log = Assert.Single(logs.Items);