2 implementations of ITelemetryRepository
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
22public sealed partial class SqliteTelemetryRepository : ITelemetryRepository, ITelemetryRepositoryWriter
Aspire.Dashboard.Components.Tests (1)
Shared\TestTelemetryRepository.cs (1)
10internal sealed class TestTelemetryRepository(ITelemetryRepository inner) : ITelemetryRepository
105 references to ITelemetryRepository
Aspire.Dashboard (52)
Api\TelemetryApiService.cs (1)
18internal sealed class TelemetryApiService(ITelemetryRepository telemetryRepository)
Components\Controls\ApplicationSummary.razor.cs (4)
120private ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository; 298var repository = TelemetryRepository; 375private async Task<HomeActivity> LoadActivityAsync(ITelemetryRepository repository, List<OtlpResource> telemetryResources, List<ResourceKey> resourceKeys, int errorLogCount, CancellationToken cancellationToken) 521private async Task<DateTime> GetActivityTimeAsync(ITelemetryRepository repository, List<ResourceKey> resourceKeys, int errorLogCount, CancellationToken cancellationToken)
Components\Controls\Chart\ChartBase.cs (1)
54public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\Chart\ChartContainer.razor.cs (1)
98public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\Chart\LiveSparklinesBase.cs (1)
80private ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\ClearSignalsButton.razor.cs (1)
23public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\PropertyValues\SpanIdButtonValue.razor.cs (1)
29public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\SignalsActionsDisplay.razor.cs (1)
15public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\SpanDetails.razor.cs (1)
37public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Dialogs\ExemplarsDialog.razor.cs (1)
32public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Dialogs\FilterDialog.razor.cs (1)
42public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Dialogs\GenAIVisualizerDialog.razor.cs (2)
53public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository; 388ITelemetryRepository telemetryRepository, ITelemetryErrorRecorder errorRecorder, List<OtlpResource> resources, Func<List<OtlpSpan>> getContextGenAISpans,
Components\Dialogs\ManageDataDialog.razor.cs (1)
36public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Layout\NavigationAvailabilityProvider.cs (1)
30public required ITelemetryRepository TelemetryRepository { get; init; }
Components\Layout\ResourcesLayout.razor.cs (1)
208private ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Controls\TreeMetricSelector.razor.cs (1)
26public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\ConsoleLogs.razor.cs (1)
88public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\Metrics.razor.cs (1)
67public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\Resources.razor.cs (1)
55public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\StructuredLogs.razor.cs (2)
65public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository; 571ITelemetryRepository telemetryRepository,
Components\Legacy\Pages\TraceDetail.razor.cs (1)
71public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\Traces.razor.cs (1)
65public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\ConsoleLogs.razor.cs (1)
88public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\Metrics.razor.cs (1)
95public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\ResourceOverview.razor.cs (2)
128private ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository; 322var repository = TelemetryRepository;
Components\Pages\Resources.razor.cs (1)
57public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\StructuredLogs.razor.cs (2)
65public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository; 625ITelemetryRepository telemetryRepository,
Components\Pages\TraceDetail.razor.cs (1)
73public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\Traces.razor.cs (1)
72public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\ResourcesGridColumns\UnreadLogErrorsBadge.razor.cs (1)
25public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
DashboardWebApplication.cs (1)
403(ITelemetryRepositoryWriter)services.GetRequiredService<ITelemetryRepository>());
Model\ExportHelpers.cs (2)
24public static async Task<ExportResult> GetSpanAsJsonAsync(OtlpSpan span, ITelemetryRepository telemetryRepository, CancellationToken cancellationToken) 47public static async Task<ExportResult> GetTraceAsJsonAsync(OtlpTrace trace, ITelemetryRepository telemetryRepository, CancellationToken cancellationToken)
Model\GenAI\GenAIVisualizerDialogViewModel.cs (4)
54ITelemetryRepository telemetryRepository, 281private static async Task CreateMessagesAsync(GenAIVisualizerDialogViewModel viewModel, ITelemetryRepository telemetryRepository, CancellationToken cancellationToken) 597private static async Task<List<OtlpLogEntry>> GetSpanLogEntriesAsync(ITelemetryRepository telemetryRepository, OtlpSpan span, CancellationToken cancellationToken) 617private static async Task ParseEvaluationsAsync(GenAIVisualizerDialogViewModel viewModel, ITelemetryRepository telemetryRepository, CancellationToken cancellationToken)
Model\SpanDetailsViewModel.cs (2)
22public static SpanDetailsViewModel Create(OtlpSpan span, ITelemetryRepository telemetryRepository, List<OtlpResource> resources) 68private static SpanLinkViewModel CreateLinkViewModel(string traceId, string spanId, KeyValuePair<string, string>[] attributes, ITelemetryRepository telemetryRepository, Dictionary<string, OtlpTrace> traceCache)
ServiceClient\DashboardDataSource.cs (1)
59public ITelemetryRepository TelemetryRepository { get; private set; } = null!;
ServiceClient\DashboardDataSourcePool.cs (3)
219private readonly Lazy<ITelemetryRepository> _telemetryRepository; 226Func<ITelemetryRepository> telemetryRepositoryFactory, 244public ITelemetryRepository TelemetryRepository => _telemetryRepository.Value;
ServiceClient\IRepositoryFactory.cs (1)
18ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database);
ServiceClient\RepositoryFactory.cs (1)
18public ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database) =>
Aspire.Dashboard.Components.Tests (16)
Controls\ApplicationSummaryTests.cs (1)
430services.AddSingleton<ITelemetryRepository>(provider =>
Layout\ResourcesLayoutActivityTests.cs (7)
45services.AddSingleton<ITelemetryRepository>(provider => new TestTelemetryRepository(provider.GetRequiredService<SqliteTelemetryRepository>()) 93configureServices: services => services.AddSingleton<ITelemetryRepository>(provider => 156services.AddSingleton<ITelemetryRepository>(provider => 314configureServices: services => services.AddSingleton<ITelemetryRepository>(CreateRepository)); 316ITelemetryRepository CreateRepository(IServiceProvider services) 415configureServices: services => services.AddSingleton<ITelemetryRepository>(provider => 482services.AddSingleton<ITelemetryRepository>(provider =>
Pages\MetricsTests.cs (2)
1606var repository = Services.GetRequiredService<DashboardDataSource>().TelemetryRepository; 1671var repository = Services.GetRequiredService<DashboardDataSource>().TelemetryRepository;
Pages\ResourceOverviewEmptyPanelsTests.cs (1)
356configureServices: services => services.AddSingleton<ITelemetryRepository>(provider =>
Pages\TraceDetailsTests.cs (1)
243Services.AddSingleton<ITelemetryRepository>(services =>
Shared\FluentUISetupHelpers.cs (3)
238context.Services.AddSingleton<ITelemetryRepository>(services => services.GetRequiredService<SqliteTelemetryRepository>()); 375ITelemetryRepository telemetryRepository, 378public ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database) => telemetryRepository;
Shared\TestTelemetryRepository.cs (1)
10internal sealed class TestTelemetryRepository(ITelemetryRepository inner) : ITelemetryRepository
Aspire.Dashboard.Playwright.Tests (2)
Integration\Playwright\ResourcePaneResponsiveTests.cs (1)
2157services.GetRequiredService<ITelemetryRepository>().MarkViewedErrorLogs(null);
tests\Aspire.Dashboard.Tests\Shared\MockDashboardClient.cs (1)
130public ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database) =>
Aspire.Dashboard.Tests (35)
Integration\OtlpHttpJsonTests.cs (11)
488private static OtlpResource AssertMyServiceResource(ITelemetryRepository telemetryRepository) 524var telemetryRepository = app.Services.GetRequiredService<ITelemetryRepository>(); 584var telemetryRepository = app.Services.GetRequiredService<ITelemetryRepository>(); 661var telemetryRepository = app.Services.GetRequiredService<ITelemetryRepository>(); 711var telemetryRepository = app.Services.GetRequiredService<ITelemetryRepository>(); 761var telemetryRepository = app.Services.GetRequiredService<ITelemetryRepository>();
Integration\StartupTests.cs (1)
116var telemetryRepository = Assert.IsType<SqliteTelemetryRepository>(app.Services.GetRequiredService<ITelemetryRepository>());
Model\DashboardDataSourceTests.cs (6)
1398var historicalTelemetryRepository = dataSource.TelemetryRepository; 1490var currentTelemetryRepository = dataSource.TelemetryRepository; 1567var currentTelemetryRepository = dataSource.TelemetryRepository; 1603var currentTelemetryRepository = dataSource.TelemetryRepository; 1636var currentTelemetryRepository = dataSource.TelemetryRepository; 1769public ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database)
Model\TelemetryExportServiceTests.cs (2)
1261private async Task<TelemetryExportService> CreateExportServiceAsync(ITelemetryRepository repository, bool isDashboardClientEnabled = true) 1278private static Dictionary<string, HashSet<AspireDataType>> BuildAllResourcesSelection(ITelemetryRepository repository)
Shared\MockDashboardClient.cs (1)
130public ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database) =>
Shared\TestDashboardDataSource.cs (3)
23ITelemetryRepository telemetryRepository, 33ITelemetryRepository telemetryRepository, 36public ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database) => telemetryRepository;
TelemetryRepositoryTests\HistogramTests.cs (5)
435async Task AssertInstrumentAsync(ITelemetryRepository repository) 744async Task AssertIntervalsAsync(ITelemetryRepository repository, HistogramDataPoint[] expected) 816async Task AssertInstrumentAsync(ITelemetryRepository repository) 1055async Task AssertInstrumentAsync(ITelemetryRepository repository) 1624private static async Task<OtlpInstrumentData> GetInstrumentAsync(ITelemetryRepository repository, bool rollup)
TelemetryRepositoryTests\ResourceTests.cs (1)
176private static async Task AddResource(ITelemetryRepository repository, string name, string? instanceId = null)
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (3)
72ITelemetryRepository repository, 75public ITelemetryRepository Repository { get; } = repository; 98public static ITelemetryRepositoryWriter AsWriter(this ITelemetryRepository repository) => (ITelemetryRepositoryWriter)repository;
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (1)
1407private static async Task AddTestData(ITelemetryRepository repository, string resourceName, string instanceId)
TelemetryRepositoryTests\TraceTests.cs (1)
1393private static async Task AddTrace(ITelemetryRepository repository, string traceId, DateTime startTime)