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)
160var exportedPoint = Assert.Single(Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!); 280var exportedPoint = Assert.Single(Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!); 460var scope = Assert.Single(resource.ScopeMetrics!); 866var exportedPoints = Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!; 1092var metric = Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!); 1270var exportedPoints = Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!; 1361var exportedPoints = Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!; 1416var exportedPoint = Assert.Single(Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Histogram!.DataPoints!); 1607var scope = Assert.Single(resource.ScopeMetrics!);
TelemetryRepositoryTests\MetricsTests.cs (3)
1919var exportedPoint = Assert.Single(Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Sum!.DataPoints!); 1997var exportedPoints = Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Sum!.DataPoints!; 2099var exportedPoint = Assert.Single(Assert.Single(Assert.Single(Assert.Single(exported.ResourceMetrics!).ScopeMetrics!).Metrics!).Sum!.DataPoints!);