2 implementations of GetInstrumentSummaries
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.cs (1)
268public List<OtlpInstrumentSummary> GetInstrumentSummaries(ResourceKey key) => GetCachedInstrumentSummaries(key);
Aspire.Dashboard.Components.Tests (1)
Shared\TestTelemetryRepository.cs (1)
77public List<OtlpInstrumentSummary> GetInstrumentSummaries(ResourceKey key) => inner.GetInstrumentSummaries(key);
35 references to GetInstrumentSummaries
Aspire.Dashboard (9)
Components\Controls\ApplicationSummary.razor.cs (1)
440.Sum(r => repository.GetInstrumentSummaries(r.ResourceKey).Count);
Components\Controls\Overview\OverviewTelemetry.cs (1)
41var instruments = repository.GetInstrumentSummaries(key)
Components\Legacy\Pages\Metrics.razor.cs (2)
186viewModel.Instruments = selectedInstance != null ? TelemetryRepository.GetInstrumentSummaries(selectedInstance.Value) : null; 340var instruments = TelemetryRepository.GetInstrumentSummaries(selectedResourceKey.Value);
Components\Pages\Metrics.razor.cs (4)
377else if (!keys.Any(key => TelemetryRepository.GetInstrumentSummaries(key).Any(i => 409viewModel.Instruments = selectedInstance != null ? TelemetryRepository.GetInstrumentSummaries(selectedInstance.Value) : null; 420[.. (_aggregateResources ?? []).SelectMany(resource => TelemetryRepository.GetInstrumentSummaries(resource.ResourceKey))]; 923? TelemetryRepository.GetInstrumentSummaries(selectedResourceKey.Value)
Model\TelemetryExportService.cs (1)
190var instrumentSummaries = _dataSource.TelemetryRepository.GetInstrumentSummaries(resource.ResourceKey);
Aspire.Dashboard.Components.Tests (4)
Pages\MetricsTests.cs (3)
2080var instruments = repository.GetInstrumentSummaries(resource.ResourceKey); 2150.Add(c => c.Instruments, repository.GetInstrumentSummaries(resource.ResourceKey)) 2217builder.Add(c => c.Instruments, repository.GetInstrumentSummaries(resource.ResourceKey));
Shared\TestTelemetryRepository.cs (1)
77public List<OtlpInstrumentSummary> GetInstrumentSummaries(ResourceKey key) => inner.GetInstrumentSummaries(key);
Aspire.Dashboard.Tests (22)
Integration\OtlpHttpJsonTests.cs (2)
714var instruments = telemetryRepository.GetInstrumentSummaries(resource.ResourceKey); 765var instruments = telemetryRepository.GetInstrumentSummaries(resource.ResourceKey);
TelemetryRepositoryTests\MetricsTests.cs (12)
467var instruments = repositoryContext.Repository.GetInstrumentSummaries(resources[0].ResourceKey); 1060var instruments = repositoryContext.Repository.GetInstrumentSummaries(resourceKey); 1170var resource1Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource1Key); 1174var resource2Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource2Key); 1245var resource1Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource1Key); 1280var resource2Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource2Key); 1395var resource1Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource1Key); 1421var resource2Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource2Key); 1502var resource1Instruments = repositoryContext.Repository.GetInstrumentSummaries(resource1Key); 1557repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("TestService", "TestId")), 1993var instruments = repositoryContext.Repository.GetInstrumentSummaries(resources[0].ResourceKey); 3231Assert.Single(repositoryContext.Repository.GetInstrumentSummaries(CreateResource().GetResourceKey()));
TelemetryRepositoryTests\TelemetryLimitTests.cs (2)
157var instruments = repositoryContext.Repository.GetInstrumentSummaries(resources[0].ResourceKey); 181instruments = repositoryContext.Repository.GetInstrumentSummaries(resources[0].ResourceKey);
TelemetryRepositoryTests\TelemetryRepositoryTests.cs (6)
58Assert.NotEmpty(repositoryContext.Repository.GetInstrumentSummaries(resource.ResourceKey)); 242var resource1Metrics = repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("resource1", "123")); 254var resource2Metrics = repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("resource2", "456")); 285var resource1Metrics = repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("resource1", "111")); 288var resource3Metrics = repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("resource3", "333")); 357var metrics = repositoryContext.Repository.GetInstrumentSummaries(new ResourceKey("resource1", "123"));