7 instantiations of OtlpScope
Aspire.Dashboard (4)
Otlp\Model\OtlpHelpers.cs (1)
532
? 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)
803
: new
OtlpScope
(name, version, attributes);
Aspire.Dashboard.Components.Tests (2)
Controls\PlotlyChartTests.cs (1)
70
Parent = new
OtlpScope
("Parent-Name-<b>Bold</b>", string.Empty, []),
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
50
return new
OtlpScope
(scope.Name, scope.Version, scope.Attributes.ToKeyValuePairs(context));
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
50
return new
OtlpScope
(scope.Name, scope.Version, scope.Attributes.ToKeyValuePairs(context));
61 references to OtlpScope
Aspire.Dashboard (25)
Model\TelemetryExportService.cs (1)
642
private static OtlpInstrumentationScopeJson ConvertScope(
OtlpScope
scope)
Otlp\Model\OtlpHelpers.cs (3)
513
public static bool TryGetOrAddScope(Dictionary<string,
OtlpScope
> scopes, InstrumentationScope? scope, OtlpContext context, TelemetryType telemetryType, [NotNullWhen(true)] out
OtlpScope
? s)
533
:
OtlpScope
.Empty;
Otlp\Model\OtlpInstrument.cs (1)
17
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
648
var
scope = CreateScope(scopeName, scopeVersion, attributes);
715
private (OtlpResource Resource, OtlpResourceView View,
OtlpScope
Scope) GetCachedTelemetryMetadata(
771
private sealed record CachedScope(long ScopeId,
OtlpScope
Scope);
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (2)
57
OtlpScope
scope;
792
OtlpScope
scope,
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (3)
799
private static
OtlpScope
CreateScope(string name, string version, KeyValuePair<string, string>[] attributes)
801
return name ==
OtlpScope
.Empty.Name && version.Length == 0 && attributes.Length == 0
802
?
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 (7)
Controls\GenAIVisualizerDialogTests.cs (3)
37
var
scope = CreateOtlpScope(context);
99
var
scope = CreateOtlpScope(context);
130
var
scope = CreateOtlpScope(context);
Pages\TraceDetailsTests.cs (1)
513
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)
212
public static OtlpLogEntry CreateOtlpLogEntry(LogRecord record, OtlpResourceView resourceView,
OtlpScope
scope, OtlpContext context)
267
public static OtlpSpan CreateOtlpSpan(OtlpResource resource, OtlpTrace trace,
OtlpScope
scope, string spanId, string? parentSpanId, DateTime startDate,
Aspire.Dashboard.Tests (29)
ChartDataCalculatorTests.cs (1)
537
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)
1581
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)
212
public static OtlpLogEntry CreateOtlpLogEntry(LogRecord record, OtlpResourceView resourceView,
OtlpScope
scope, OtlpContext context)
267
public static OtlpSpan CreateOtlpSpan(OtlpResource resource, OtlpTrace trace,
OtlpScope
scope, string spanId, string? parentSpanId, DateTime startDate,