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)
13public 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)
70Parent = new OtlpScope("Parent-Name-<b>Bold</b>", string.Empty, []),
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
50return new OtlpScope(scope.Name, scope.Version, scope.Attributes.ToKeyValuePairs(context));
Aspire.Dashboard.Tests (1)
tests\Shared\Telemetry\TelemetryTestHelpers.cs (1)
50return new OtlpScope(scope.Name, scope.Version, scope.Attributes.ToKeyValuePairs(context));
61 references to OtlpScope
Aspire.Dashboard (25)
Model\TelemetryExportService.cs (1)
642private static OtlpInstrumentationScopeJson ConvertScope(OtlpScope scope)
Otlp\Model\OtlpHelpers.cs (3)
513public 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)
17public required OtlpScope Parent { get; init; }
Otlp\Model\OtlpLogEntry.cs (2)
24public OtlpScope Scope { get; } 42OtlpScope scope,
Otlp\Model\OtlpLogEntryData.cs (2)
11internal OtlpLogEntryData(LogRecord record, OtlpResourceView resourceView, OtlpScope scope, OtlpContext context) 67internal OtlpScope Scope { get; }
Otlp\Model\OtlpScope.cs (1)
13public static readonly OtlpScope Empty = new OtlpScope(name: UnknownScopeName, version: string.Empty, attributes: []);
Otlp\Model\OtlpSpan.cs (2)
45public OtlpScope Scope { get; } 76public OtlpSpan(OtlpResourceView resourceView, OtlpTrace trace, OtlpScope scope)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (5)
187var incomingScope = instrumentationScope is null 188? OtlpScope.Empty 648var scope = CreateScope(scopeName, scopeVersion, attributes); 715private (OtlpResource Resource, OtlpResourceView View, OtlpScope Scope) GetCachedTelemetryMetadata( 771private sealed record CachedScope(long ScopeId, OtlpScope Scope);
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (2)
57OtlpScope scope; 792OtlpScope scope,
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (3)
799private static OtlpScope CreateScope(string name, string version, KeyValuePair<string, string>[] attributes) 801return name == OtlpScope.Empty.Name && version.Length == 0 && attributes.Length == 0 802? OtlpScope.Empty
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (3)
75OtlpScope scope; 310OtlpScope scope, 918private OtlpSpan CreateSqliteSpan(OtlpResourceView resourceView, OtlpTrace trace, OtlpScope scope, Span span)
Aspire.Dashboard.Components.Tests (7)
Controls\GenAIVisualizerDialogTests.cs (3)
37var scope = CreateOtlpScope(context); 99var scope = CreateOtlpScope(context); 130var scope = CreateOtlpScope(context);
Pages\TraceDetailsTests.cs (1)
513var scope = CreateOtlpScope(context);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
47public static OtlpScope CreateOtlpScope(OtlpContext context, string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null) 212public static OtlpLogEntry CreateOtlpLogEntry(LogRecord record, OtlpResourceView resourceView, OtlpScope scope, OtlpContext context) 267public static OtlpSpan CreateOtlpSpan(OtlpResource resource, OtlpTrace trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate,
Aspire.Dashboard.Tests (29)
ChartDataCalculatorTests.cs (1)
537Parent = OtlpScope.Empty,
Model\SpanWaterfallViewModelTests.cs (4)
24var scope = TelemetryTestHelpers.CreateOtlpScope(context); 50var scope = TelemetryTestHelpers.CreateOtlpScope(context); 83var scope = TelemetryTestHelpers.CreateOtlpScope(context); 109var scope = TelemetryTestHelpers.CreateOtlpScope(context);
Model\TelemetryExportServiceTests.cs (1)
486var scope = CreateOtlpScope(context);
Model\TraceDetailPageViewModelTests.cs (4)
39var scope = TelemetryTestHelpers.CreateOtlpScope(context); 72var scope = TelemetryTestHelpers.CreateOtlpScope(context); 107var scope = TelemetryTestHelpers.CreateOtlpScope(context); 148var scope = TelemetryTestHelpers.CreateOtlpScope(context);
Model\TraceHelpersTests.cs (7)
21var scope = TelemetryTestHelpers.CreateOtlpScope(context); 43var scope = TelemetryTestHelpers.CreateOtlpScope(context); 70var scope = TelemetryTestHelpers.CreateOtlpScope(context); 98var scope = TelemetryTestHelpers.CreateOtlpScope(context); 132var scope = TelemetryTestHelpers.CreateOtlpScope(context); 163var scope = TelemetryTestHelpers.CreateOtlpScope(context); 183var scope = TelemetryTestHelpers.CreateOtlpScope(context);
TelemetryRepositoryTests\LogTests.cs (1)
437Assert.Same(OtlpScope.Empty, l.Scope);
TelemetryRepositoryTests\MetricsTests.cs (1)
1581Assert.Same(OtlpScope.Empty, instrument.Parent);
TelemetryRepositoryTests\OtlpSpanTests.cs (5)
23var scope = TelemetryTestHelpers.CreateOtlpScope(context); 74var scope = TelemetryTestHelpers.CreateOtlpScope(context); 93var scope = TelemetryTestHelpers.CreateOtlpScope(context); 113var scope = TelemetryTestHelpers.CreateOtlpScope(context); 176var scope = TelemetryTestHelpers.CreateOtlpScope(context);
TelemetryRepositoryTests\TraceTests.cs (2)
915Assert.Same(OtlpScope.Empty, trace.FirstSpan.Scope); 922Assert.Same(OtlpScope.Empty, trace.FirstSpan.Scope);
tests\Shared\Telemetry\TelemetryTestHelpers.cs (3)
47public static OtlpScope CreateOtlpScope(OtlpContext context, string? name = null, IEnumerable<KeyValuePair<string, string>>? attributes = null) 212public static OtlpLogEntry CreateOtlpLogEntry(LogRecord record, OtlpResourceView resourceView, OtlpScope scope, OtlpContext context) 267public static OtlpSpan CreateOtlpSpan(OtlpResource resource, OtlpTrace trace, OtlpScope scope, string spanId, string? parentSpanId, DateTime startDate,