2 writes to ScopeMetrics
Aspire.Dashboard (1)
Model\TelemetryExportService.cs (1)
479ScopeMetrics = resourceGroup
Aspire.Dashboard.Tests (1)
Model\TelemetryImportServiceTests.cs (1)
586ScopeMetrics =
22 references to ScopeMetrics
Aspire.Dashboard (2)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
344if (json.ScopeMetrics is not null) 346foreach (var sm in json.ScopeMetrics)
Aspire.Dashboard.Tests (20)
Model\TelemetryExportServiceTests.cs (8)
579Assert.NotNull(resourceMetrics.ScopeMetrics); 580Assert.Single(resourceMetrics.ScopeMetrics); 582var scopeMetrics = resourceMetrics.ScopeMetrics[0]; 662Assert.NotNull(resourceMetrics.ScopeMetrics); 663Assert.Equal(2, resourceMetrics.ScopeMetrics.Length); 665var meter1Scope = resourceMetrics.ScopeMetrics.FirstOrDefault(s => s.Scope?.Name == "Meter1"); 670var meter2Scope = resourceMetrics.ScopeMetrics.FirstOrDefault(s => s.Scope?.Name == "Meter2"); 739var metric = metricsData?.ResourceMetrics?.FirstOrDefault()?.ScopeMetrics?.FirstOrDefault()?.Metrics?.FirstOrDefault();
TelemetryRepositoryTests\HistogramTests.cs (9)
99var exportedPoint = Assert.Single(Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!); 219var exportedPoint = Assert.Single(Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!); 399var scope = Assert.Single(resource.ScopeMetrics!); 805var exportedPoints = Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!; 1031var metric = Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!); 1209var exportedPoints = Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!; 1300var exportedPoints = Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!; 1355var exportedPoint = Assert.Single(Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!); 1546var scope = Assert.Single(resource.ScopeMetrics!);
TelemetryRepositoryTests\MetricsTests.cs (3)
1741var exportedPoint = Assert.Single(Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Sum!.DataPoints!); 1819var exportedPoints = Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Sum!.DataPoints!; 1921var exportedPoint = Assert.Single(Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Sum!.DataPoints!);