1 implementation of ITelemetryRepositoryWriter
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
22
public sealed partial class SqliteTelemetryRepository : ITelemetryRepository,
ITelemetryRepositoryWriter
26 references to ITelemetryRepositoryWriter
Aspire.Dashboard (14)
Components\Dialogs\ManageDataDialog.razor.cs (1)
39
public required
ITelemetryRepositoryWriter
TelemetryRepositoryWriter { get; init; }
Components\Pages\Metrics.razor.cs (1)
68
public required
ITelemetryRepositoryWriter
TelemetryRepositoryWriter { get; init; }
Components\Pages\StructuredLogs.razor.cs (1)
65
public required
ITelemetryRepositoryWriter
TelemetryRepositoryWriter { get; init; }
Components\Pages\Traces.razor.cs (1)
64
public required
ITelemetryRepositoryWriter
TelemetryRepositoryWriter { get; init; }
DashboardWebApplication.cs (2)
330
builder.Services.AddSingleton<
ITelemetryRepositoryWriter
>(services =>
331
(
ITelemetryRepositoryWriter
)services.GetRequiredService<ITelemetryRepository>());
Model\TelemetryImportService.cs (2)
21
private readonly
ITelemetryRepositoryWriter
_telemetryRepositoryWriter;
39
ITelemetryRepositoryWriter
telemetryRepositoryWriter,
Otlp\OtlpLogsService.cs (2)
15
private readonly
ITelemetryRepositoryWriter
_telemetryRepositoryWriter;
17
public OtlpLogsService(ILogger<OtlpLogsService> logger,
ITelemetryRepositoryWriter
telemetryRepositoryWriter)
Otlp\OtlpMetricsService.cs (2)
15
private readonly
ITelemetryRepositoryWriter
_telemetryRepositoryWriter;
17
public OtlpMetricsService(ILogger<OtlpMetricsService> logger,
ITelemetryRepositoryWriter
telemetryRepositoryWriter)
Otlp\OtlpTraceService.cs (2)
15
private readonly
ITelemetryRepositoryWriter
_telemetryRepositoryWriter;
17
public OtlpTraceService(ILogger<OtlpTraceService> logger,
ITelemetryRepositoryWriter
telemetryRepositoryWriter)
Aspire.Dashboard.Components.Tests (2)
Shared\FluentUISetupHelpers.cs (2)
157
Func<
ITelemetryRepositoryWriter
, Task> seed)
224
context.Services.AddSingleton<
ITelemetryRepositoryWriter
>(services => services.GetRequiredService<SqliteTelemetryRepository>());
Aspire.Dashboard.Tests (10)
Integration\Playwright\AspireMenuLayoutTests.cs (2)
29
var
repository = DashboardServerFixture.DashboardApp.Services.GetRequiredService<
ITelemetryRepositoryWriter
>();
Integration\Playwright\ResourceSelectInteractionTests.cs (2)
29
var
repository = DashboardServerFixture.DashboardApp.Services.GetRequiredService<
ITelemetryRepositoryWriter
>();
Integration\Playwright\TracesLayoutTests.cs (2)
29
var
repository = DashboardServerFixture.DashboardApp.Services.GetRequiredService<
ITelemetryRepositoryWriter
>();
Model\DashboardSqliteDatabaseTests.cs (1)
89
telemetryWriteTask = ((
ITelemetryRepositoryWriter
)telemetryRepository).ClearMetricsAsync();
TelemetryRepositoryTests\TelemetryRepositoryTestBase.cs (2)
98
public static
ITelemetryRepositoryWriter
AsWriter(this ITelemetryRepository repository) => (
ITelemetryRepositoryWriter
)repository;
TelemetryRepositoryTests\TraceTests.cs (1)
2691
var
writer = repositoryContext.Repository.AsWriter();