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