4 writes to Resource
Aspire.Dashboard (3)
Model\TelemetryExportService.cs (3)
282Resource = ConvertResourceView(firstSpan.Source), 314Resource = ConvertResourceView(span.Source), 341Resource = ConvertResourceView(firstSpan.Source),
Aspire.Dashboard.Tests (1)
Model\TelemetryImportServiceTests.cs (1)
533Resource = new OtlpResourceJson
7 references to Resource
Aspire.Dashboard (2)
Otlp\Model\Serialization\OtlpJsonProtobufConverter.cs (2)
73if (json.Resource is not null) 75resourceSpans.Resource = ToProtobuf(json.Resource);
Aspire.Dashboard.Tests (5)
Model\TelemetryExportServiceTests.cs (5)
313Assert.NotNull(resourceSpans.Resource); 314Assert.NotNull(resourceSpans.Resource.Attributes); 315Assert.Contains(resourceSpans.Resource.Attributes, a => a.Key == OtlpResource.SERVICE_NAME && a.Value?.StringValue == "TestService"); 1064Assert.NotNull(data.ResourceSpans[0].Resource?.Attributes); 1220Assert.NotNull(data.ResourceSpans[0].Resource?.Attributes);