2 implementations of ITelemetryRepository
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
22
public sealed partial class SqliteTelemetryRepository :
ITelemetryRepository
, ITelemetryRepositoryWriter
Aspire.Dashboard.Components.Tests (1)
Shared\TestTelemetryRepository.cs (1)
10
internal sealed class TestTelemetryRepository(ITelemetryRepository inner) :
ITelemetryRepository
115 references to ITelemetryRepository
Aspire.Dashboard (53)
Api\TelemetryApiService.cs (1)
18
internal sealed class TelemetryApiService(
ITelemetryRepository
telemetryRepository)
Components\Controls\ApplicationSummary.razor.cs (4)
153
private
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
420
var
repository = TelemetryRepository;
466
private async Task<HomeActivity> LoadActivityAsync(
ITelemetryRepository
repository, List<OtlpResource> telemetryResources, List<ResourceKey> resourceKeys, Task<OverviewLogs> logsTask, CancellationToken cancellationToken)
620
private async Task<DateTime> GetActivityTimeAsync(
ITelemetryRepository
repository, List<ResourceKey> resourceKeys, Task<OverviewLogs> logsTask, CancellationToken cancellationToken)
Components\Controls\Chart\ChartBase.cs (1)
54
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\Chart\ChartContainer.razor.cs (1)
86
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\Chart\LiveSparklinesBase.cs (1)
80
private
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\ClearSignalsButton.razor.cs (1)
23
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\Overview\OverviewTelemetry.cs (1)
31
internal static async Task<OverviewTelemetry> LoadAsync(
ITelemetryRepository
repository, ResourceKey key, CancellationToken cancellationToken)
Components\Controls\Overview\OverviewTelemetryLoader.cs (2)
18
private readonly
ITelemetryRepository
_repository;
36
public OverviewTelemetryLoader(
ITelemetryRepository
repository, ILogger logger, Func<Action, Task> invokeAsync, Action onLoaded, Func<TimeSpan, CancellationToken, Task> delayAsync)
Components\Controls\Overview\ResourceOverview.razor.cs (1)
112
private
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\PropertyValues\SpanIdButtonValue.razor.cs (1)
29
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\SignalsActionsDisplay.razor.cs (1)
15
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\SpanDetails.razor.cs (1)
37
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Dialogs\ExemplarsDialog.razor.cs (1)
32
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Dialogs\FilterDialog.razor.cs (1)
42
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Dialogs\GenAIVisualizerDialog.razor.cs (2)
53
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
388
ITelemetryRepository
telemetryRepository, ITelemetryErrorRecorder errorRecorder, List<OtlpResource> resources, Func<List<OtlpSpan>> getContextGenAISpans,
Components\Dialogs\ManageDataDialog.razor.cs (1)
36
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Layout\NavigationAvailabilityProvider.cs (1)
30
public required
ITelemetryRepository
TelemetryRepository { get; init; }
Components\Layout\ResourcesLayout.razor.cs (1)
212
private
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Controls\TreeMetricSelector.razor.cs (1)
26
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\ConsoleLogs.razor.cs (1)
88
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\Metrics.razor.cs (1)
67
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\Resources.razor.cs (1)
54
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\StructuredLogs.razor.cs (2)
65
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
566
ITelemetryRepository
telemetryRepository,
Components\Legacy\Pages\TraceDetail.razor.cs (1)
71
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\Traces.razor.cs (1)
65
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\ConsoleLogs.razor.cs (1)
88
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\Metrics.razor.cs (1)
96
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\StructuredLogs.razor.cs (2)
65
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
729
ITelemetryRepository
telemetryRepository,
Components\Pages\TraceDetail.razor.cs (1)
73
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\Traces.razor.cs (1)
72
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\ResourcesGridColumns\UnreadLogErrorsBadge.razor.cs (1)
25
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
DashboardWebApplication.cs (1)
425
(ITelemetryRepositoryWriter)services.GetRequiredService<
ITelemetryRepository
>());
Model\ExportHelpers.cs (2)
24
public static async Task<ExportResult> GetSpanAsJsonAsync(OtlpSpan span,
ITelemetryRepository
telemetryRepository, CancellationToken cancellationToken)
47
public static async Task<ExportResult> GetTraceAsJsonAsync(OtlpTrace trace,
ITelemetryRepository
telemetryRepository, CancellationToken cancellationToken)
Model\GenAI\GenAIVisualizerDialogViewModel.cs (4)
54
ITelemetryRepository
telemetryRepository,
281
private static async Task CreateMessagesAsync(GenAIVisualizerDialogViewModel viewModel,
ITelemetryRepository
telemetryRepository, CancellationToken cancellationToken)
597
private static async Task<List<OtlpLogEntry>> GetSpanLogEntriesAsync(
ITelemetryRepository
telemetryRepository, OtlpSpan span, CancellationToken cancellationToken)
617
private static async Task ParseEvaluationsAsync(GenAIVisualizerDialogViewModel viewModel,
ITelemetryRepository
telemetryRepository, CancellationToken cancellationToken)
Model\SpanDetailsViewModel.cs (2)
22
public static SpanDetailsViewModel Create(OtlpSpan span,
ITelemetryRepository
telemetryRepository, List<OtlpResource> resources)
68
private static SpanLinkViewModel CreateLinkViewModel(string traceId, string spanId, KeyValuePair<string, string>[] attributes,
ITelemetryRepository
telemetryRepository, Dictionary<string, OtlpTrace> traceCache)
ServiceClient\DashboardDataSource.cs (1)
59
public
ITelemetryRepository
TelemetryRepository { get; private set; } = null!;
ServiceClient\DashboardDataSourcePool.cs (3)
219
private readonly Lazy<
ITelemetryRepository
> _telemetryRepository;
226
Func<
ITelemetryRepository
> telemetryRepositoryFactory,
244
public
ITelemetryRepository
TelemetryRepository => _telemetryRepository.Value;
ServiceClient\IRepositoryFactory.cs (1)
18
ITelemetryRepository
CreateTelemetryRepository(DashboardSqliteDatabase database);
ServiceClient\RepositoryFactory.cs (1)
18
public
ITelemetryRepository
CreateTelemetryRepository(DashboardSqliteDatabase database) =>
Aspire.Dashboard.Components.Tests (23)
Controls\ApplicationSummaryTests.cs (2)
253
var
repository = Services.GetRequiredService<DashboardDataSource>().TelemetryRepository;
825
services.AddSingleton<
ITelemetryRepository
>(provider =>
Layout\ResourcesLayoutActivityTests.cs (8)
48
services.AddSingleton<
ITelemetryRepository
>(provider => new TestTelemetryRepository(provider.GetRequiredService<SqliteTelemetryRepository>())
122
services.AddSingleton<
ITelemetryRepository
>(provider => new TestTelemetryRepository(provider.GetRequiredService<SqliteTelemetryRepository>())
170
configureServices: services => services.AddSingleton<
ITelemetryRepository
>(provider =>
239
services.AddSingleton<
ITelemetryRepository
>(provider =>
407
configureServices: services => services.AddSingleton<
ITelemetryRepository
>(CreateRepository));
409
ITelemetryRepository
CreateRepository(IServiceProvider services)
513
configureServices: services => services.AddSingleton<
ITelemetryRepository
>(provider =>
580
services.AddSingleton<
ITelemetryRepository
>(provider =>
Pages\MetricsTests.cs (4)
2078
var
repository = Services.GetRequiredService<DashboardDataSource>().TelemetryRepository;
2112
Services.AddSingleton<
ITelemetryRepository
>(provider =>
2146
var
repository = Services.GetRequiredService<DashboardDataSource>().TelemetryRepository;
2211
var
repository = Services.GetRequiredService<DashboardDataSource>().TelemetryRepository;
Pages\ResourceOverviewConsoleTests.cs (2)
119
services.AddSingleton<
ITelemetryRepository
>(provider =>
282
services.AddSingleton<
ITelemetryRepository
>(provider =>
Pages\ResourceOverviewEmptyPanelsTests.cs (2)
716
configureServices: services => services.AddSingleton<
ITelemetryRepository
>(provider =>
792
configureServices: services => services.AddSingleton<
ITelemetryRepository
>(provider =>
Pages\TraceDetailsTests.cs (1)
237
Services.AddSingleton<
ITelemetryRepository
>(services =>
Shared\FluentUISetupHelpers.cs (3)
239
context.Services.AddSingleton<
ITelemetryRepository
>(services => services.GetRequiredService<SqliteTelemetryRepository>());
376
ITelemetryRepository
telemetryRepository,
379
public
ITelemetryRepository
CreateTelemetryRepository(DashboardSqliteDatabase database) => telemetryRepository;
Shared\TestTelemetryRepository.cs (1)
10
internal sealed class TestTelemetryRepository(
ITelemetryRepository
inner) : ITelemetryRepository
Aspire.Dashboard.Playwright.Tests (2)
Integration\Playwright\ResourcePaneResponsiveTests.cs (1)
2155
services.GetRequiredService<
ITelemetryRepository
>().MarkViewedErrorLogs(null);
tests\Aspire.Dashboard.Tests\Shared\MockDashboardClient.cs (1)
131
public
ITelemetryRepository
CreateTelemetryRepository(DashboardSqliteDatabase database) =>
Aspire.Dashboard.Tests (37)
Integration\OtlpHttpJsonTests.cs (11)
488
private static OtlpResource AssertMyServiceResource(
ITelemetryRepository
telemetryRepository)
524
var
telemetryRepository = app.Services.GetRequiredService<
ITelemetryRepository
>();
584
var
telemetryRepository = app.Services.GetRequiredService<
ITelemetryRepository
>();
661
var
telemetryRepository = app.Services.GetRequiredService<
ITelemetryRepository
>();
711
var
telemetryRepository = app.Services.GetRequiredService<
ITelemetryRepository
>();
761
var
telemetryRepository = app.Services.GetRequiredService<
ITelemetryRepository
>();
Integration\StartupTests.cs (1)
166
var telemetryRepository = Assert.IsType<SqliteTelemetryRepository>(app.Services.GetRequiredService<
ITelemetryRepository
>());
Model\DashboardDataSourceTests.cs (6)
1404
var
historicalTelemetryRepository = dataSource.TelemetryRepository;
1496
var
currentTelemetryRepository = dataSource.TelemetryRepository;
1573
var
currentTelemetryRepository = dataSource.TelemetryRepository;
1609
var
currentTelemetryRepository = dataSource.TelemetryRepository;
1642
var
currentTelemetryRepository = dataSource.TelemetryRepository;
1775
public
ITelemetryRepository
CreateTelemetryRepository(DashboardSqliteDatabase database)
Model\TelemetryExportServiceTests.cs (2)
1263
private async Task<TelemetryExportService> CreateExportServiceAsync(
ITelemetryRepository
repository, bool isDashboardClientEnabled = true)
1280
private static Dictionary<string, HashSet<AspireDataType>> BuildAllResourcesSelection(
ITelemetryRepository
repository)
Shared\MockDashboardClient.cs (1)
131
public
ITelemetryRepository
CreateTelemetryRepository(DashboardSqliteDatabase database) =>
Shared\TestDashboardDataSource.cs (3)
23
ITelemetryRepository
telemetryRepository,
33
ITelemetryRepository
telemetryRepository,
36
public
ITelemetryRepository
CreateTelemetryRepository(DashboardSqliteDatabase database) => telemetryRepository;
TelemetryRepositoryTests\HistogramTests.cs (5)
435
async Task AssertInstrumentAsync(
ITelemetryRepository
repository)
744
async Task AssertIntervalsAsync(
ITelemetryRepository
repository, HistogramDataPoint[] expected)
816
async Task AssertInstrumentAsync(
ITelemetryRepository
repository)
1055
async Task AssertInstrumentAsync(
ITelemetryRepository
repository)
1624
private static async Task<OtlpInstrumentData> GetInstrumentAsync(
ITelemetryRepository
repository, bool rollup)
TelemetryRepositoryTests\LogTests.cs (1)
100
var
repository = context.Repository;
TelemetryRepositoryTests\ResourceTests.cs (1)
176
private static async Task AddResource(
ITelemetryRepository
repository, string name, string? instanceId = null)
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (3)
72
ITelemetryRepository
repository,
75
public
ITelemetryRepository
Repository { get; } = repository;
98
public static ITelemetryRepositoryWriter AsWriter(this
ITelemetryRepository
repository) => (ITelemetryRepositoryWriter)repository;
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (2)
1407
private static async Task AddTestData(
ITelemetryRepository
repository, string resourceName, string instanceId)
1473
var
repository = repositoryContext.Repository;
TelemetryRepositoryTests\TraceTests.cs (1)
1394
private static async Task AddTrace(
ITelemetryRepository
repository, string traceId, DateTime startTime)