10 references to Read
Aspire.Dashboard (6)
Components\Pages\Metrics.razor.cs (1)
274_metricsSubscription = TelemetryRepository.OnNewMetrics(selectedApplicationKey, SubscriptionType.Read, async () =>
Components\Pages\StructuredLogs.razor.cs (1)
232_logsSubscription = TelemetryRepository.OnNewLogs(PageViewModel.SelectedApplication.Id?.GetApplicationKey(), SubscriptionType.Read, async () =>
Components\Pages\TraceDetail.razor.cs (1)
171_tracesSubscription = TelemetryRepository.OnNewTraces(_trace.FirstSpan.Source.ApplicationKey, SubscriptionType.Read, () => InvokeAsync(async () =>
Components\Pages\Traces.razor.cs (1)
200_tracesSubscription = TelemetryRepository.OnNewTraces(selectedApplicationKey, SubscriptionType.Read, async () =>
Otlp\Storage\TelemetryRepository.cs (2)
220return AddSubscription(nameof(OnNewApplications), null, SubscriptionType.Read, callback, _applicationSubscriptions); 354if (!_logSubscriptions.Any(s => s.SubscriptionType == SubscriptionType.Read && (s.ApplicationKey == applicationView.ApplicationKey || s.ApplicationKey == null)))
Aspire.Dashboard.Tests (4)
TelemetryRepositoryTests\LogTests.cs (4)
277using var subscription = repository.OnNewLogs(applicationKey: null, SubscriptionType.Read, () => Task.CompletedTask); 329using var subscription = repository.OnNewLogs(applicationKey: new ApplicationKey("TestService", "1"), SubscriptionType.Read, () => Task.CompletedTask); 491repository.OnNewLogs(applications[0].ApplicationKey, SubscriptionType.Read, () => 714var subscription = repository.OnNewLogs(applicationKey: null, SubscriptionType.Read, async () =>