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