12 instantiations of OtlpScope
Aspire.Dashboard (2)
Otlp\Model\OtlpScope.cs (1)
13public static readonly OtlpScope Empty = new OtlpScope();
Otlp\Storage\TelemetryRepository.cs (1)
316scopeRef ??= (scope != null) ? new OtlpScope(scope, _otlpContext) : OtlpScope.Empty;
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
44scope: new OtlpScope(TelemetryTestHelpers.CreateScope(
Aspire.Dashboard.Tests (9)
Model\SpanWaterfallViewModelTests.cs (4)
24var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 57var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 100var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 122var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context);
Model\TraceHelpersTests.cs (4)
21var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 43var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 70var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 98var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context);
TelemetryRepositoryTests\OtlpSpanTests.cs (1)
23var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context);
23 references to OtlpScope
Aspire.Dashboard (12)
Otlp\Model\OtlpLogEntry.cs (2)
23public OtlpScope Scope { get; } 26public OtlpLogEntry(LogRecord record, OtlpApplicationView logApp, OtlpScope scope, OtlpContext context)
Otlp\Model\OtlpScope.cs (1)
13public static readonly OtlpScope Empty = new OtlpScope();
Otlp\Storage\TelemetryRepository.cs (9)
43private readonly Dictionary<string, OtlpScope> _logScopes = new(); 50private readonly Dictionary<string, OtlpScope> _traceScopes = new(); 306private bool TryAddScope(Dictionary<string, OtlpScope> scopes, InstrumentationScope? scope, [NotNullWhen(true)] out OtlpScope? s) 314ref var scopeRef = ref CollectionsMarshal.GetValueRefOrAddDefault(scopes, name, out _); 316scopeRef ??= (scope != null) ? new OtlpScope(scope, _otlpContext) : OtlpScope.Empty; 336if (!TryAddScope(_logScopes, sl.Scope, out var scope)) 910if (!TryAddScope(_traceScopes, scopeSpan.Scope, out var scope)) 1109private static OtlpSpan CreateSpan(OtlpApplicationView applicationView, Span span, OtlpTrace trace, OtlpScope scope, OtlpContext context)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
293public static OtlpSpan CreateOtlpSpan(OtlpApplication app, OtlpTrace trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate,
Aspire.Dashboard.Tests (10)
Model\SpanWaterfallViewModelTests.cs (4)
24var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 57var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 100var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 122var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context);
Model\TraceHelpersTests.cs (4)
21var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 43var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 70var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context); 98var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context);
TelemetryRepositoryTests\OtlpSpanTests.cs (1)
23var scope = new OtlpScope(TelemetryTestHelpers.CreateScope(), context);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
293public static OtlpSpan CreateOtlpSpan(OtlpApplication app, OtlpTrace trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate,