8 instantiations of OtlpScope
Aspire.Dashboard (2)
Otlp\Model\OtlpScope.cs (1)
13public static readonly OtlpScope Empty = new OtlpScope();
Otlp\Storage\TelemetryRepository.cs (1)
300scopeRef ??= (scope != null) ? new OtlpScope(scope, _otlpContext) : OtlpScope.Empty;
Aspire.Dashboard.Components.Tests (1)
Controls\StructuredLogDetailsTests.cs (1)
45scope: new OtlpScope(TelemetryTestHelpers.CreateScope(
Aspire.Dashboard.Tests (5)
Model\SpanWaterfallViewModelTests.cs (1)
23var 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);
19 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)
37private readonly Dictionary<string, OtlpScope> _logScopes = new(); 44private readonly Dictionary<string, OtlpScope> _traceScopes = new(); 290private bool TryAddScope(Dictionary<string, OtlpScope> scopes, InstrumentationScope? scope, [NotNullWhen(true)] out OtlpScope? s) 298ref var scopeRef = ref CollectionsMarshal.GetValueRefOrAddDefault(scopes, name, out _); 300scopeRef ??= (scope != null) ? new OtlpScope(scope, _otlpContext) : OtlpScope.Empty; 320if (!TryAddScope(_logScopes, sl.Scope, out var scope)) 780if (!TryAddScope(_traceScopes, scopeSpan.Scope, out var scope)) 976private static OtlpSpan CreateSpan(OtlpApplicationView applicationView, Span span, OtlpTrace trace, OtlpScope scope, OtlpContext context)
Aspire.Dashboard.Components.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
289public static OtlpSpan CreateSpan(OtlpApplication app, OtlpTrace trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate)
Aspire.Dashboard.Tests (6)
Model\SpanWaterfallViewModelTests.cs (1)
23var 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);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
289public static OtlpSpan CreateSpan(OtlpApplication app, OtlpTrace trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate)