1 write to Scope
Aspire.Dashboard (1)
Otlp\Model\OtlpSpan.cs (1)
80Scope = scope;
16 references to Scope
Aspire.Dashboard (8)
Components\Controls\SpanDetails.razor.cs (3)
125new TelemetryPropertyViewModel { Name = "Source", Key = KnownSourceFields.NameField, Value = _viewModel.Span.Scope.Name } 127if (!string.IsNullOrEmpty(_viewModel.Span.Scope.Version)) 129_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "Version", Key = KnownSourceFields.VersionField, Value = _viewModel.Span.Scope.Version });
Model\TelemetryExportService.cs (3)
284.GroupBy(s => s.Scope) 319Scope = ConvertScope(span.Scope), 343.GroupBy(s => s.Scope)
Otlp\Model\OtlpSpan.cs (2)
85return new OtlpSpan(item.Source, trace, item.Scope) 241KnownSourceFields.NameField => span.Scope.Name,
Aspire.Dashboard.Tests (8)
Integration\OtlpHttpJsonTests.cs (2)
554Assert.Equal("my.library", span.Scope.Name); 555Assert.Equal("1.0.0", span.Scope.Version);
TelemetryRepositoryTests\SqliteTelemetryPersistenceTests.cs (2)
117Assert.Same(log.Scope, span.Scope); 364Assert.Equal("TestSource", trace.FirstSpan.Scope.Name);
TelemetryRepositoryTests\TraceTests.cs (4)
802span => Assert.Equal("scope1", span.Scope.Name), 803span => Assert.Equal("scope2", span.Scope.Name)); 915Assert.Same(OtlpScope.Empty, trace.FirstSpan.Scope); 922Assert.Same(OtlpScope.Empty, trace.FirstSpan.Scope);