4 writes to ResourceSpans
Aspire.Dashboard (3)
Model\TelemetryExportService.cs (3)
295ResourceSpans = resourceSpans 310ResourceSpans = 354ResourceSpans = spansByResourceAndScope,
Aspire.Dashboard.Tests (1)
Model\TelemetryImportServiceTests.cs (1)
529ResourceSpans =
25 references to ResourceSpans
Aspire.Dashboard (2)
Model\TelemetryImportService.cs (2)
152if (telemetryData.ResourceSpans is { Length: > 0 }) 154await ImportTracesAsync(telemetryData.ResourceSpans).ConfigureAwait(false);
Aspire.Dashboard.Tests (23)
Model\TelemetryExportServiceTests.cs (22)
309Assert.NotNull(result.ResourceSpans); 310Assert.Single(result.ResourceSpans); 312var resourceSpans = result.ResourceSpans[0]; 376var spans = result.ResourceSpans![0].ScopeSpans![0].Spans!; 430var span = result.ResourceSpans![0].ScopeSpans![0].Spans![0]; 474var span = result.ResourceSpans![0].ScopeSpans![0].Spans![0]; 509var exportedParent = result.ResourceSpans! 731var span = tracesData?.ResourceSpans?.FirstOrDefault()?.ScopeSpans?.FirstOrDefault()?.Spans?.FirstOrDefault(); 882var exportedSpans = Assert.Single(tracesData!.ResourceSpans!).ScopeSpans!.SelectMany(scope => scope.Spans!).ToList(); 1062Assert.NotNull(data?.ResourceSpans); 1063Assert.Single(data.ResourceSpans); 1064Assert.NotNull(data.ResourceSpans[0].Resource?.Attributes); 1065Assert.NotNull(data.ResourceSpans[0].ScopeSpans); 1066Assert.Single(data.ResourceSpans[0].ScopeSpans![0].Spans!); 1116Assert.NotNull(data?.ResourceSpans); 1117Assert.Single(data.ResourceSpans[0].ScopeSpans![0].Spans!); 1177Assert.NotNull(data?.ResourceSpans); 1178Assert.Equal(2, data.ResourceSpans[0].ScopeSpans![0].Spans!.Length); 1218Assert.NotNull(data?.ResourceSpans); 1219Assert.Single(data.ResourceSpans); 1220Assert.NotNull(data.ResourceSpans[0].Resource?.Attributes); 1221Assert.Equal(2, data.ResourceSpans[0].ScopeSpans![0].Spans!.Length);
TelemetryApiServiceTests.cs (1)
826return result.Data?.ResourceSpans?