1 write to Scope
Aspire.Dashboard (1)
Otlp\Model\OtlpSpan.cs (1)
78Scope = scope;
15 references to Scope
Aspire.Dashboard (9)
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] == '.')
Model\TelemetryExportService.cs (1)
248var spansByScope = allSpans.GroupBy(s => s.Scope);
Otlp\Model\OtlpSpan.cs (2)
83return new OtlpSpan(item.Source, trace, item.Scope) 239KnownSourceFields.NameField => span.Scope.Name,
Aspire.Dashboard.Tests (6)
Integration\OtlpHttpJsonTests.cs (2)
459Assert.Equal("my.library", span.Scope.Name); 460Assert.Equal("1.0.0", span.Scope.Version);
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);