13 instantiations of OtlpScope
Aspire.Dashboard (4)
Otlp\Model\OtlpHelpers.cs (1)
559
? new
OtlpScope
(scope.Name, scope.Version, scope.Attributes.ToKeyValuePairs(context))
Otlp\Model\OtlpScope.cs (1)
13
public static readonly OtlpScope Empty = new
OtlpScope
(name: UnknownScopeName, version: string.Empty, attributes: []);
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
189
: new
OtlpScope
(
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (1)
924
: new
OtlpScope
(name, version, attributes);
Aspire.Dashboard.Components.Tests (6)
Controls\PlotlyChartTests.cs (5)
39
Parent = new
OtlpScope
("meter", string.Empty, []),
130
Parent = new
OtlpScope
("Parent-Name-<b>Bold</b>", string.Empty, []),
194
Parent = new
OtlpScope
("meter", string.Empty, []),
248
Parent = new
OtlpScope
("meter", string.Empty, []),
293
var scope = new
OtlpScope
("meter", string.Empty, []);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
50
return new
OtlpScope
(scope.Name, scope.Version, scope.Attributes.ToKeyValuePairs(context));
Aspire.Dashboard.Playwright.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
50
return new
OtlpScope
(scope.Name, scope.Version, scope.Attributes.ToKeyValuePairs(context));
Aspire.Dashboard.Tests (2)
Model\MetricPinStoreTests.cs (1)
173
Parent = new
OtlpScope
(key.MeterName, version: string.Empty, attributes: []),
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
50
return new
OtlpScope
(scope.Name, scope.Version, scope.Attributes.ToKeyValuePairs(context));
65 references to OtlpScope
Aspire.Dashboard (25)
Model\TelemetryExportService.cs (1)
644
private static OtlpInstrumentationScopeJson ConvertScope(
OtlpScope
scope)
Otlp\Model\OtlpHelpers.cs (3)
540
public static bool TryGetOrAddScope(Dictionary<string,
OtlpScope
> scopes, InstrumentationScope? scope, OtlpContext context, TelemetryType telemetryType, [NotNullWhen(true)] out
OtlpScope
? s)
560
:
OtlpScope
.Empty;
Otlp\Model\OtlpInstrument.cs (1)
23
public required
OtlpScope
Parent { get; init; }
Otlp\Model\OtlpLogEntry.cs (2)
24
public
OtlpScope
Scope { get; }
42
OtlpScope
scope,
Otlp\Model\OtlpLogEntryData.cs (2)
11
internal OtlpLogEntryData(LogRecord record, OtlpResourceView resourceView,
OtlpScope
scope, OtlpContext context)
67
internal
OtlpScope
Scope { get; }
Otlp\Model\OtlpScope.cs (1)
13
public static readonly
OtlpScope
Empty = new OtlpScope(name: UnknownScopeName, version: string.Empty, attributes: []);
Otlp\Model\OtlpSpan.cs (2)
45
public
OtlpScope
Scope { get; }
76
public OtlpSpan(OtlpResourceView resourceView, OtlpTrace trace,
OtlpScope
scope)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (5)
187
var
incomingScope = instrumentationScope is null
188
?
OtlpScope
.Empty
650
var
scope = CreateScope(scopeName, scopeVersion, attributes);
718
private (OtlpResource Resource, OtlpResourceView View,
OtlpScope
Scope) GetCachedTelemetryMetadata(
774
private sealed record CachedScope(long ScopeId,
OtlpScope
Scope);
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (2)
57
OtlpScope
scope;
795
OtlpScope
scope,
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (3)
920
private static
OtlpScope
CreateScope(string name, string version, KeyValuePair<string, string>[] attributes)
922
return name ==
OtlpScope
.Empty.Name && version.Length == 0 && attributes.Length == 0
923
?
OtlpScope
.Empty
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (3)
75
OtlpScope
scope;
310
OtlpScope
scope,
918
private OtlpSpan CreateSqliteSpan(OtlpResourceView resourceView, OtlpTrace trace,
OtlpScope
scope, Span span)
Aspire.Dashboard.Components.Tests (8)
Controls\GenAIVisualizerDialogTests.cs (3)
42
var
scope = CreateOtlpScope(context);
117
var
scope = CreateOtlpScope(context);
149
var
scope = CreateOtlpScope(context);
Controls\PlotlyChartTests.cs (1)
293
var
scope = new OtlpScope("meter", string.Empty, []);
Pages\TraceDetailsTests.cs (1)
645
var
scope = CreateOtlpScope(context);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
47
public static
OtlpScope
CreateOtlpScope(OtlpContext context, string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
233
public static OtlpLogEntry CreateOtlpLogEntry(LogRecord record, OtlpResourceView resourceView,
OtlpScope
scope, OtlpContext context)
288
public static OtlpSpan CreateOtlpSpan(OtlpResource resource, OtlpTrace trace,
OtlpScope
scope, string spanId, string? parentSpanId, DateTime startDate,
Aspire.Dashboard.Playwright.Tests (3)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
47
public static
OtlpScope
CreateOtlpScope(OtlpContext context, string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
233
public static OtlpLogEntry CreateOtlpLogEntry(LogRecord record, OtlpResourceView resourceView,
OtlpScope
scope, OtlpContext context)
288
public static OtlpSpan CreateOtlpSpan(OtlpResource resource, OtlpTrace trace,
OtlpScope
scope, string spanId, string? parentSpanId, DateTime startDate,
Aspire.Dashboard.Tests (29)
ChartDataCalculatorTests.cs (1)
1230
Parent =
OtlpScope
.Empty,
Model\SpanWaterfallViewModelTests.cs (4)
24
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
50
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
83
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
109
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
Model\TelemetryExportServiceTests.cs (1)
486
var
scope = CreateOtlpScope(context);
Model\TraceDetailPageViewModelTests.cs (4)
39
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
72
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
107
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
148
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
Model\TraceHelpersTests.cs (7)
21
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
43
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
70
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
98
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
132
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
163
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
183
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
TelemetryRepositoryTests\LogTests.cs (1)
437
Assert.Same(
OtlpScope
.Empty, l.Scope);
TelemetryRepositoryTests\MetricsTests.cs (1)
2000
Assert.Same(
OtlpScope
.Empty, instrument.Parent);
TelemetryRepositoryTests\OtlpSpanTests.cs (5)
23
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
74
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
93
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
113
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
176
var
scope = TelemetryTestHelpers.CreateOtlpScope(context);
TelemetryRepositoryTests\TraceTests.cs (2)
915
Assert.Same(
OtlpScope
.Empty, trace.FirstSpan.Scope);
922
Assert.Same(
OtlpScope
.Empty, trace.FirstSpan.Scope);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
47
public static
OtlpScope
CreateOtlpScope(OtlpContext context, string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null)
233
public static OtlpLogEntry CreateOtlpLogEntry(LogRecord record, OtlpResourceView resourceView,
OtlpScope
scope, OtlpContext context)
288
public static OtlpSpan CreateOtlpSpan(OtlpResource resource, OtlpTrace trace,
OtlpScope
scope, string spanId, string? parentSpanId, DateTime startDate,