1 write to Scope
Aspire.Dashboard (1)
Otlp\Model\OtlpSpan.cs (1)
78Scope = scope;
12 references to Scope
Aspire.Dashboard (8)
Components\Controls\SpanDetails.razor.cs (3)
147new TelemetryPropertyViewModel { Name = "Source", Key = KnownSourceFields.NameField, Value = _viewModel.Span.Scope.Name } 149if (!string.IsNullOrEmpty(_viewModel.Span.Scope.Version)) 151_contextAttributes.Add(new TelemetryPropertyViewModel { Name = "Version", Key = KnownSourceFields.VersionField, Value = _viewModel.Span.Scope.Version });
Model\SpanType.cs (3)
164if (span.Scope.Name.StartsWith(scopePrefix, StringComparison.OrdinalIgnoreCase)) 167if (span.Scope.Name.Length == scopePrefix.Length) 172if (span.Scope.Name[scopePrefix.Length] == '.')
Otlp\Model\OtlpSpan.cs (2)
83return new OtlpSpan(item.Source, trace, item.Scope) 239KnownSourceFields.NameField => span.Scope.Name,
Aspire.Dashboard.Tests (4)
TelemetryRepositoryTests\TraceTests.cs (4)
336span => Assert.Equal("scope1", span.Scope.Name), 337span => Assert.Equal("scope2", span.Scope.Name)); 451Assert.Same(OtlpScope.Empty, trace.FirstSpan.Scope); 458Assert.Same(OtlpScope.Empty, trace.FirstSpan.Scope);