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