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
115 references to ITelemetryRepository
Aspire.Dashboard (53)
Api\TelemetryApiService.cs (1)
18internal sealed class TelemetryApiService(ITelemetryRepository telemetryRepository)
Components\Controls\ApplicationSummary.razor.cs (4)
153private ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository; 420var repository = TelemetryRepository; 466private async Task<HomeActivity> LoadActivityAsync(ITelemetryRepository repository, List<OtlpResource> telemetryResources, List<ResourceKey> resourceKeys, Task<OverviewLogs> logsTask, CancellationToken cancellationToken) 620private async Task<DateTime> GetActivityTimeAsync(ITelemetryRepository repository, List<ResourceKey> resourceKeys, Task<OverviewLogs> logsTask, CancellationToken cancellationToken)
Components\Controls\Chart\ChartBase.cs (1)
54public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\Chart\ChartContainer.razor.cs (1)
86public 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\Overview\OverviewTelemetry.cs (1)
31internal static async Task<OverviewTelemetry> LoadAsync(ITelemetryRepository repository, ResourceKey key, CancellationToken cancellationToken)
Components\Controls\Overview\OverviewTelemetryLoader.cs (2)
18private readonly ITelemetryRepository _repository; 36public OverviewTelemetryLoader(ITelemetryRepository repository, ILogger logger, Func<Action, Task> invokeAsync, Action onLoaded, Func<TimeSpan, CancellationToken, Task> delayAsync)
Components\Controls\Overview\ResourceOverview.razor.cs (1)
112private 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)
212private 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)
54public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Legacy\Pages\StructuredLogs.razor.cs (2)
65public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository; 566ITelemetryRepository 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)
96public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\StructuredLogs.razor.cs (2)
65public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository; 729ITelemetryRepository 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)
425(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 (23)
Controls\ApplicationSummaryTests.cs (2)
253var repository = Services.GetRequiredService<DashboardDataSource>().TelemetryRepository; 825services.AddSingleton<ITelemetryRepository>(provider =>
Layout\ResourcesLayoutActivityTests.cs (8)
48services.AddSingleton<ITelemetryRepository>(provider => new TestTelemetryRepository(provider.GetRequiredService<SqliteTelemetryRepository>()) 122services.AddSingleton<ITelemetryRepository>(provider => new TestTelemetryRepository(provider.GetRequiredService<SqliteTelemetryRepository>()) 170configureServices: services => services.AddSingleton<ITelemetryRepository>(provider => 239services.AddSingleton<ITelemetryRepository>(provider => 407configureServices: services => services.AddSingleton<ITelemetryRepository>(CreateRepository)); 409ITelemetryRepository CreateRepository(IServiceProvider services) 513configureServices: services => services.AddSingleton<ITelemetryRepository>(provider => 580services.AddSingleton<ITelemetryRepository>(provider =>
Pages\MetricsTests.cs (4)
2078var repository = Services.GetRequiredService<DashboardDataSource>().TelemetryRepository; 2112Services.AddSingleton<ITelemetryRepository>(provider => 2146var repository = Services.GetRequiredService<DashboardDataSource>().TelemetryRepository; 2211var repository = Services.GetRequiredService<DashboardDataSource>().TelemetryRepository;
Pages\ResourceOverviewConsoleTests.cs (2)
119services.AddSingleton<ITelemetryRepository>(provider => 282services.AddSingleton<ITelemetryRepository>(provider =>
Pages\ResourceOverviewEmptyPanelsTests.cs (2)
716configureServices: services => services.AddSingleton<ITelemetryRepository>(provider => 792configureServices: services => services.AddSingleton<ITelemetryRepository>(provider =>
Pages\TraceDetailsTests.cs (1)
237Services.AddSingleton<ITelemetryRepository>(services =>
Shared\FluentUISetupHelpers.cs (3)
239context.Services.AddSingleton<ITelemetryRepository>(services => services.GetRequiredService<SqliteTelemetryRepository>()); 376ITelemetryRepository telemetryRepository, 379public 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)
2155services.GetRequiredService<ITelemetryRepository>().MarkViewedErrorLogs(null);
tests\Aspire.Dashboard.Tests\Shared\MockDashboardClient.cs (1)
131public ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database) =>
Aspire.Dashboard.Tests (37)
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)
166var telemetryRepository = Assert.IsType<SqliteTelemetryRepository>(app.Services.GetRequiredService<ITelemetryRepository>());
Model\DashboardDataSourceTests.cs (6)
1404var historicalTelemetryRepository = dataSource.TelemetryRepository; 1496var currentTelemetryRepository = dataSource.TelemetryRepository; 1573var currentTelemetryRepository = dataSource.TelemetryRepository; 1609var currentTelemetryRepository = dataSource.TelemetryRepository; 1642var currentTelemetryRepository = dataSource.TelemetryRepository; 1775public ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database)
Model\TelemetryExportServiceTests.cs (2)
1263private async Task<TelemetryExportService> CreateExportServiceAsync(ITelemetryRepository repository, bool isDashboardClientEnabled = true) 1280private static Dictionary<string, HashSet<AspireDataType>> BuildAllResourcesSelection(ITelemetryRepository repository)
Shared\MockDashboardClient.cs (1)
131public 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\LogTests.cs (1)
100var repository = context.Repository;
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 (2)
1407private static async Task AddTestData(ITelemetryRepository repository, string resourceName, string instanceId) 1473var repository = repositoryContext.Repository;
TelemetryRepositoryTests\TraceTests.cs (1)
1394private static async Task AddTrace(ITelemetryRepository repository, string traceId, DateTime startTime)