3 implementations of GetLogsAsync
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
176
public Task<PagedResult<OtlpLogEntry>>
GetLogsAsync
(GetLogsContext context, CancellationToken cancellationToken) =>
Aspire.Dashboard.Components.Tests (1)
Shared\TestTelemetryRepository.cs (1)
33
public Task<PagedResult<OtlpLogEntry>>
GetLogsAsync
(GetLogsContext context, CancellationToken cancellationToken) => inner.GetLogsAsync(context, cancellationToken);
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (1)
482
public Task<PagedResult<OtlpLogEntry>>
GetLogsAsync
(GetLogsContext context, CancellationToken cancellationToken = default) => Task.FromResult(GetLogs(context));
41 references to GetLogsAsync
Aspire.Dashboard (3)
Api\TelemetryApiService.cs (1)
208
var result = await telemetryRepository.
GetLogsAsync
(new GetLogsContext
Model\GenAI\GenAIVisualizerDialogViewModel.cs (1)
613
var logsResult = await telemetryRepository.
GetLogsAsync
(logsContext, cancellationToken).ConfigureAwait(false);
Model\TelemetryExportService.cs (1)
158
var logs = await _dataSource.TelemetryRepository.
GetLogsAsync
(GetLogsContext.ForResourceKey(resource.ResourceKey), cancellationToken).ConfigureAwait(false);
Aspire.Dashboard.Components.Tests (1)
Shared\TestTelemetryRepository.cs (1)
33
public Task<PagedResult<OtlpLogEntry>> GetLogsAsync(GetLogsContext context, CancellationToken cancellationToken) => inner.
GetLogsAsync
(context, cancellationToken);
Aspire.Dashboard.Tests (37)
Integration\OtlpHttpJsonTests.cs (2)
587
var logs = await telemetryRepository.
GetLogsAsync
(new GetLogsContext
664
var logs = await telemetryRepository.
GetLogsAsync
(new GetLogsContext
Model\DashboardDataSourceTests.cs (1)
1113
Assert.Equal("Test Value!", Assert.Single((await dataSource.TelemetryRepository.
GetLogsAsync
(new GetLogsContext
TelemetryRepositoryTests\LogTests.cs (27)
67
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
186
var logs = await repositoryContext.Repository.
GetLogsAsync
(context, cancellationToken: CancellationToken.None);
226
var latestLogs = await repositoryContext.Repository.
GetLogsAsync
(latestContext, cancellationToken: CancellationToken.None);
280
var emptyLogsPage = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
317
var logs = (await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
374
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
426
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
674
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
772
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
914
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1062
Assert.Empty((await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1070
Assert.Single((await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1107
var result = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1149
Assert.Empty((await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1157
Assert.Single((await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1218
var logs1 = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1241
var logs2 = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1317
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1407
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1472
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1546
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1586
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1627
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1668
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1711
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1753
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
1811
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (7)
42
Assert.Empty((await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext { ResourceKeys = [resourceKey], Count = 100, Filters = [], StartIndex = 0 }, cancellationToken: CancellationToken.None)).Items);
53
Assert.Single((await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext { ResourceKeys = [resourceKey], Count = 100, Filters = [], StartIndex = 0 }, cancellationToken: CancellationToken.None)).Items);
233
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext { ResourceKeys = [], StartIndex = 0, Count = 10, Filters = [] }, cancellationToken: CancellationToken.None);
245
var resource2Logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext { ResourceKeys = [resource2Key], StartIndex = 0, Count = 10, Filters = [] }, cancellationToken: CancellationToken.None);
274
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext { ResourceKeys = [], StartIndex = 0, Count = 10, Filters = [] }, cancellationToken: CancellationToken.None);
318
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext { ResourceKeys = [], StartIndex = 0, Count = 10, Filters = [] }, cancellationToken: CancellationToken.None);
349
var logs = await repositoryContext.Repository.
GetLogsAsync
(new GetLogsContext { ResourceKeys = [], StartIndex = 0, Count = 10, Filters = [] }, cancellationToken: CancellationToken.None);