3 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
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\InMemoryTelemetryRepository.cs (1)
30public sealed partial class InMemoryTelemetryRepository : ITelemetryRepository, ITelemetryRepositoryWriter
68 references to ITelemetryRepository
Aspire.Dashboard (35)
Api\TelemetryApiService.cs (1)
18internal sealed class TelemetryApiService(ITelemetryRepository telemetryRepository)
Components\Controls\Chart\ChartBase.cs (1)
49public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\Chart\ChartContainer.razor.cs (1)
58public 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)
39public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\TreeMetricSelector.razor.cs (1)
24public 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)
54public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository; 389ITelemetryRepository telemetryRepository, ITelemetryErrorRecorder errorRecorder, List<OtlpResource> resources, Func<List<OtlpSpan>> getContextGenAISpans,
Components\Dialogs\ManageDataDialog.razor.cs (1)
35public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\ConsoleLogs.razor.cs (1)
87public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\Metrics.razor.cs (1)
65public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\Resources.razor.cs (1)
50public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\StructuredLogs.razor.cs (1)
64public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\TraceDetail.razor.cs (1)
69public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\Traces.razor.cs (1)
63public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
Components\ResourcesGridColumns\UnreadLogErrorsBadge.razor.cs (1)
25public ITelemetryRepository TelemetryRepository => DataSource.TelemetryRepository;
DashboardWebApplication.cs (1)
326(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) 62private 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 (5)
Pages\TraceDetailsTests.cs (1)
94Services.AddSingleton<ITelemetryRepository>(services =>
Shared\FluentUISetupHelpers.cs (3)
214context.Services.AddSingleton<ITelemetryRepository>(services => services.GetRequiredService<SqliteTelemetryRepository>()); 319ITelemetryRepository telemetryRepository, 322public ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database) => telemetryRepository;
Shared\TestTelemetryRepository.cs (1)
10internal sealed class TestTelemetryRepository(ITelemetryRepository inner) : ITelemetryRepository
Aspire.Dashboard.Tests (28)
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)
56var telemetryRepository = Assert.IsType<SqliteTelemetryRepository>(app.Services.GetRequiredService<ITelemetryRepository>());
Model\DashboardDataSourceTests.cs (5)
1005var historicalTelemetryRepository = dataSource.TelemetryRepository; 1097var currentTelemetryRepository = dataSource.TelemetryRepository; 1173var currentTelemetryRepository = dataSource.TelemetryRepository; 1204var currentTelemetryRepository = dataSource.TelemetryRepository; 1337public 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\TestDashboardDataSource.cs (3)
23ITelemetryRepository telemetryRepository, 33ITelemetryRepository telemetryRepository, 36public ITelemetryRepository CreateTelemetryRepository(DashboardSqliteDatabase database) => telemetryRepository;
TelemetryRepositoryTests\ResourceTests.cs (1)
176private static async Task AddResource(ITelemetryRepository repository, string name, string? instanceId = null)
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (3)
86ITelemetryRepository repository, 89public ITelemetryRepository Repository { get; } = repository; 112public static ITelemetryRepositoryWriter AsWriter(this ITelemetryRepository repository) => (ITelemetryRepositoryWriter)repository;
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (1)
1398private 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)