2 instantiations of OtlpScopeMetricsJson
Aspire.Dashboard (1)
Model\TelemetryExportService.cs (1)
482
var scopeMetrics = instrumentsByScope.Select(scopeGroup => new
OtlpScopeMetricsJson
Aspire.Dashboard.Tests (1)
Model\TelemetryImportServiceTests.cs (1)
535
new
OtlpScopeMetricsJson
7 references to OtlpScopeMetricsJson
Aspire.Dashboard (4)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
346
foreach (
var
sm in json.ScopeMetrics)
358
private static ScopeMetrics ToProtobuf(
OtlpScopeMetricsJson
json)
Otlp\Model\Serialization\OtlpJsonSerializerContext.cs (1)
46
[JsonSerializable(typeof(
OtlpScopeMetricsJson
))]
Otlp\Model\Serialization\OtlpMetricsJson.cs (1)
18
public
OtlpScopeMetricsJson
[]? ScopeMetrics { get; set; }
Aspire.Dashboard.Tests (3)
Model\TelemetryExportServiceTests.cs (3)
524
var
scopeMetrics = resourceMetrics.ScopeMetrics[0];
606
var
meter1Scope = resourceMetrics.ScopeMetrics.FirstOrDefault(s => s.Scope?.Name == "Meter1");
611
var
meter2Scope = resourceMetrics.ScopeMetrics.FirstOrDefault(s => s.Scope?.Name == "Meter2");