1 write to Scope
Aspire.Dashboard (1)
Otlp\Model\OtlpSpan.cs (1)
78
Scope
= scope;
17 references to Scope
Aspire.Dashboard (11)
Components\Controls\SpanDetails.razor.cs (3)
132
new TelemetryPropertyViewModel { Name = "Source", Key = KnownSourceFields.NameField, Value = _viewModel.Span.
Scope
.Name }
134
if (!string.IsNullOrEmpty(_viewModel.Span.
Scope
.Version))
136
_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] == '.')
Model\TelemetryExportService.cs (3)
291
.GroupBy(s => s.
Scope
)
326
Scope = ConvertScope(span.
Scope
),
350
.GroupBy(s => s.
Scope
)
Otlp\Model\OtlpSpan.cs (2)
83
return new OtlpSpan(item.Source, trace, item.
Scope
)
239
KnownSourceFields.NameField => span.
Scope
.Name,
Aspire.Dashboard.Tests (6)
Integration\OtlpHttpJsonTests.cs (2)
459
Assert.Equal("my.library", span.
Scope
.Name);
460
Assert.Equal("1.0.0", span.
Scope
.Version);
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
);