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
77 references to ITelemetryRepository
Aspire.Dashboard (36)
Api\TelemetryApiService.cs (1)
18
internal sealed class TelemetryApiService(
ITelemetryRepository
telemetryRepository)
Components\Controls\Chart\ChartBase.cs (1)
50
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\Chart\ChartContainer.razor.cs (1)
60
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\ClearSignalsButton.razor.cs (1)
23
public
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)
38
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Controls\TreeMetricSelector.razor.cs (1)
26
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)
54
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
389
ITelemetryRepository
telemetryRepository, ITelemetryErrorRecorder errorRecorder, List<OtlpResource> resources, Func<List<OtlpSpan>> getContextGenAISpans,
Components\Dialogs\ManageDataDialog.razor.cs (1)
36
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\ConsoleLogs.razor.cs (1)
88
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\Metrics.razor.cs (1)
67
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\Resources.razor.cs (1)
55
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\StructuredLogs.razor.cs (2)
65
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
571
ITelemetryRepository
telemetryRepository,
Components\Pages\TraceDetail.razor.cs (1)
71
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\Pages\Traces.razor.cs (1)
65
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
Components\ResourcesGridColumns\UnreadLogErrorsBadge.razor.cs (1)
25
public
ITelemetryRepository
TelemetryRepository => DataSource.TelemetryRepository;
DashboardWebApplication.cs (1)
388
(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 (5)
Pages\TraceDetailsTests.cs (1)
175
Services.AddSingleton<
ITelemetryRepository
>(services =>
Shared\FluentUISetupHelpers.cs (3)
228
context.Services.AddSingleton<
ITelemetryRepository
>(services => services.GetRequiredService<SqliteTelemetryRepository>());
336
ITelemetryRepository
telemetryRepository,
339
public
ITelemetryRepository
CreateTelemetryRepository(DashboardSqliteDatabase database) => telemetryRepository;
Shared\TestTelemetryRepository.cs (1)
10
internal sealed class TestTelemetryRepository(
ITelemetryRepository
inner) : ITelemetryRepository
Aspire.Dashboard.Playwright.Tests (1)
tests\Aspire.Dashboard.Tests\Shared\MockDashboardClient.cs (1)
122
public
ITelemetryRepository
CreateTelemetryRepository(DashboardSqliteDatabase database) =>
Aspire.Dashboard.Tests (35)
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)
116
var telemetryRepository = Assert.IsType<SqliteTelemetryRepository>(app.Services.GetRequiredService<
ITelemetryRepository
>());
Model\DashboardDataSourceTests.cs (6)
1354
var
historicalTelemetryRepository = dataSource.TelemetryRepository;
1446
var
currentTelemetryRepository = dataSource.TelemetryRepository;
1523
var
currentTelemetryRepository = dataSource.TelemetryRepository;
1559
var
currentTelemetryRepository = dataSource.TelemetryRepository;
1592
var
currentTelemetryRepository = dataSource.TelemetryRepository;
1725
public
ITelemetryRepository
CreateTelemetryRepository(DashboardSqliteDatabase database)
Model\TelemetryExportServiceTests.cs (2)
1261
private async Task<TelemetryExportService> CreateExportServiceAsync(
ITelemetryRepository
repository, bool isDashboardClientEnabled = true)
1278
private static Dictionary<string, HashSet<AspireDataType>> BuildAllResourcesSelection(
ITelemetryRepository
repository)
Shared\MockDashboardClient.cs (1)
122
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\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 (1)
1398
private static async Task AddTestData(
ITelemetryRepository
repository, string resourceName, string instanceId)
TelemetryRepositoryTests\TraceTests.cs (1)
1393
private static async Task AddTrace(
ITelemetryRepository
repository, string traceId, DateTime startTime)