2 implementations of GetLogSummariesAsync
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
214
public Task<PagedResult<LogSummary>>
GetLogSummariesAsync
(GetLogsContext context, CancellationToken cancellationToken) =>
Aspire.Dashboard.Components.Tests (1)
Shared\TestTelemetryRepository.cs (1)
48
public Task<PagedResult<LogSummary>>
GetLogSummariesAsync
(GetLogsContext context, CancellationToken cancellationToken) =>
19 references to GetLogSummariesAsync
Aspire.Dashboard (14)
Components\Controls\ApplicationSummary.razor.cs (6)
309
var allLogs = await repository.
GetLogSummariesAsync
(CreateLogsContext([], 0, 0), cancellationToken).ConfigureAwait(false);
310
var warningLogs = await repository.
GetLogSummariesAsync
(CreateLogsContext(s_warningLogFilters, 0, 0), cancellationToken).ConfigureAwait(false);
311
var errorLogs = await repository.
GetLogSummariesAsync
(CreateLogsContext(s_errorLogFilters, 0, 0), cancellationToken).ConfigureAwait(false);
316
? (await repository.
GetLogSummariesAsync
(CreateLogsContext(s_errorLogFilters, Math.Max(0, errorCount - RecentItemCount), RecentItemCount), cancellationToken).ConfigureAwait(false)).Items
444
var errorLogs = await repository.
GetLogSummariesAsync
(new GetLogsContext
548
var latestError = await repository.
GetLogSummariesAsync
(new GetLogsContext
Components\Legacy\Pages\TraceDetail.razor.cs (1)
302
var result = (await TelemetryRepository.
GetLogSummariesAsync
(new GetLogsContext
Components\Pages\ResourceOverview.razor.cs (5)
324
var allLogs = await repository.
GetLogSummariesAsync
(CreateLogsContext(key, [], 0, 0), cancellationToken).ConfigureAwait(false);
329
var errorLogs = await repository.
GetLogSummariesAsync
(CreateLogsContext(key, errorFilters, 0, 0), cancellationToken).ConfigureAwait(false);
330
var warningLogs = await repository.
GetLogSummariesAsync
(CreateLogsContext(key, warningFilters, 0, 0), cancellationToken).ConfigureAwait(false);
335
? (await repository.
GetLogSummariesAsync
(CreateLogsContext(key, attentionFilters, Math.Max(0, attentionCount - RecentItemCount), RecentItemCount), cancellationToken).ConfigureAwait(false)).Items
340
? (await repository.
GetLogSummariesAsync
(CreateLogsContext(key, [], Math.Max(0, allLogs.TotalItemCount - RecentItemCount), RecentItemCount), cancellationToken).ConfigureAwait(false)).Items
Components\Pages\TraceDetail.razor.cs (1)
328
var result = (await TelemetryRepository.
GetLogSummariesAsync
(new GetLogsContext
Model\StructuredLogsViewModel.cs (1)
112
logs = await _dataSource.TelemetryRepository.
GetLogSummariesAsync
(new GetLogsContext
Aspire.Dashboard.Components.Tests (1)
Shared\TestTelemetryRepository.cs (1)
49
GetLogSummariesAsyncHandler?.Invoke(context, cancellationToken) ?? inner.
GetLogSummariesAsync
(context, cancellationToken);
Aspire.Dashboard.Tests (4)
TelemetryRepositoryTests\LogTests.cs (4)
185
var summaries = await repositoryContext.Repository.
GetLogSummariesAsync
(context, cancellationToken: CancellationToken.None);
225
var latestSummaries = await repositoryContext.Repository.
GetLogSummariesAsync
(latestContext, cancellationToken: CancellationToken.None);
252
var filtered = await repositoryContext.Repository.
GetLogSummariesAsync
(new GetLogsContext
270
var emptyPage = await repositoryContext.Repository.
GetLogSummariesAsync
(new GetLogsContext