3 instantiations of OtlpLogEntry
Aspire.Dashboard (1)
Otlp\Storage\TelemetryRepository.cs (1)
349var logEntry = new OtlpLogEntry(record, resourceView, scope, _otlpContext);
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
35LogEntry = new OtlpLogEntry(
Aspire.Dashboard.Tests (1)
Model\SpanWaterfallViewModelTests.cs (1)
60var log = new OtlpLogEntry(TelemetryTestHelpers.CreateLogRecord(traceId: trace.TraceId, spanId: "1"), app1View, scope, context);
52 references to OtlpLogEntry
Aspire.Dashboard (48)
Components\Controls\PropertyValues\LogLevelValue.razor.cs (1)
18public required OtlpLogEntry LogEntry { get; set; }
Components\Controls\StructuredLogActions.razor.cs (1)
37public required OtlpLogEntry LogEntry { get; set; }
Components\Pages\StructuredLogs.razor.cs (7)
46private FluentDataGrid<OtlpLogEntry>? _dataGrid; 117private async ValueTask<GridItemsProviderResult<OtlpLogEntry>> GetData(GridItemsProviderRequest<OtlpLogEntry> request) 257private async Task OnShowPropertiesAsync(OtlpLogEntry entry, string? buttonId) 358private string GetRowClass(OtlpLogEntry entry) 385if (_dataGrid != null && FluentDataGridHelper<OtlpLogEntry>.TrySetMaxItemCount(_dataGrid, 10_000)) 481private async Task LaunchGenAIVisualizerAsync(OtlpLogEntry logEntry)
Components\Pages\TraceDetail.razor.cs (1)
495private async Task ToggleSpanLogsAsync(OtlpLogEntry logEntry)
Components\ResourcesGridColumns\LogMessageColumnDisplay.razor.cs (3)
12public required OtlpLogEntry LogEntry { get; set; } 18public required EventCallback<OtlpLogEntry> LaunchGenAIVisualizerCallback { get; set; } 24_exceptionText = OtlpLogEntry.GetExceptionText(LogEntry);
Model\GenAI\GenAIVisualizerDialogViewModel.cs (2)
195foreach (var item in logEntries.OrderBy(i => i.TimeStamp)) 394private static List<OtlpLogEntry> GetSpanLogEntries(TelemetryRepository telemetryRepository, OtlpSpan span)
Model\Otlp\SpanLogEntryViewModel.cs (1)
13public required OtlpLogEntry LogEntry { get; init; }
Model\Otlp\SpanWaterfallViewModel.cs (3)
128public static List<SpanWaterfallViewModel> Create(OtlpTrace trace, List<OtlpLogEntry> logs, TraceDetailState state) 147static SpanWaterfallViewModel CreateViewModel(OtlpSpan span, int depth, bool hidden, TraceDetailState state, List<OtlpLogEntry>? spanLogs, ref int currentSpanLogIndex) 168foreach (var log in spanLogs)
Model\Otlp\TelemetryFilter.cs (8)
18public abstract IEnumerable<OtlpLogEntry> Apply(IEnumerable<OtlpLogEntry> input); 111public override IEnumerable<OtlpLogEntry> Apply(IEnumerable<OtlpLogEntry> input) 115case nameof(OtlpLogEntry.TimeStamp): 121case nameof(OtlpLogEntry.Severity): 130case nameof(OtlpLogEntry.Message): 138return input.Where(x => func(OtlpLogEntry.GetFieldValue(x, Field) ?? string.Empty, Value));
Model\SpanType.cs (4)
84public override IEnumerable<OtlpLogEntry> Apply(IEnumerable<OtlpLogEntry> input) 117public override IEnumerable<OtlpLogEntry> Apply(IEnumerable<OtlpLogEntry> input)
Model\StructuredLogsViewModel.cs (6)
15private PagedResult<OtlpLogEntry>? _logs; 77public PagedResult<OtlpLogEntry> GetLogs() 85filters.Add(new FieldTelemetryFilter { Field = nameof(OtlpLogEntry.Message), Condition = FilterCondition.Contains, Value = FilterText }); 90filters.Add(new FieldTelemetryFilter { Field = nameof(OtlpLogEntry.Severity), Condition = FilterCondition.GreaterThanOrEqual, Value = _logLevel.Value.ToString() }); 110filters.Add(new FieldTelemetryFilter { Field = nameof(OtlpLogEntry.Message), Condition = FilterCondition.Contains, Value = FilterText }); 115filters.Add(new FieldTelemetryFilter { Field = nameof(OtlpLogEntry.Severity), Condition = FilterCondition.GreaterThanOrEqual, Value = _logLevel.Value.ToString() });
Model\StructureLogsDetailsViewModel.cs (2)
11public required OtlpLogEntry LogEntry { get; init; } 13public static string GetEventName(OtlpLogEntry logEntry, IStringLocalizer<Dashboard.Resources.StructuredLogs> loc)
Otlp\Model\OtlpLogEntry.cs (3)
112public static string? GetFieldValue(OtlpLogEntry log, string field) 130public static string? GetExceptionText(OtlpLogEntry logEntry) 151static string? GetProperty(OtlpLogEntry logEntry, string propertyName)
Otlp\Storage\TelemetryRepository.cs (6)
44private readonly CircularBuffer<OtlpLogEntry> _logs; 349var logEntry = new OtlpLogEntry(record, resourceView, scope, _otlpContext); 401public PagedResult<OtlpLogEntry> GetLogs(GetLogsContext context) 410return PagedResult<OtlpLogEntry>.Empty; 749foreach (var log in _logs) 751var value = OtlpLogEntry.GetFieldValue(log, attributeName);
Aspire.Dashboard.Tests (4)
Model\SpanWaterfallViewModelTests.cs (1)
60var log = new OtlpLogEntry(TelemetryTestHelpers.CreateLogRecord(traceId: trace.TraceId, spanId: "1"), app1View, scope, context);
TelemetryRepositoryTests\LogTests.cs (3)
813Filters = [new FieldTelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(OtlpLogEntry.Message), Value = "does_not_contain" }] 821Filters = [new FieldTelemetryFilter { Condition = FilterCondition.Contains, Field = nameof(OtlpLogEntry.Message), Value = "message" }] 1213var log = Assert.Single(logs.Items);