1 instantiation of CachedResourceScope
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
659resourceScope = new CachedResourceScope(scope);
15 references to CachedResourceScope
Aspire.Dashboard (15)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (11)
180private CachedResourceScope GetOrAddCachedScope( 195if (resource.Scopes.TryGetValue(incomingScope.Name, out var resourceScope)) 266CachedResourceScope resourceScope, 341CachedResourceScope resourceScope, 426CachedResourceScope resourceScope) 584var resourceScope = AddCachedScope(resource, scope, CachedTelemetryType.Metrics); 592foreach (var resourceScope in resource.Scopes.Values.Where(scope => scope.TelemetryTypes.HasFlag(CachedTelemetryType.Metrics))) 655private static CachedResourceScope AddCachedScope(CachedResource resource, CachedScope scope, CachedTelemetryType telemetryType) 657if (!resource.Scopes.TryGetValue(scope.Scope.Name, out var resourceScope)) 666private static CachedInstrument AddCachedInstrument(CachedResource resource, CachedResourceScope resourceScope, CachedInstrumentRecord record) 766public Dictionary<string, CachedResourceScope> Scopes { get; } = new(StringComparer.Ordinal);
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (1)
61var cachedScope = GetOrAddCachedScope(connection, transaction, cachedResource, scopeLogs.Scope, CachedTelemetryType.Logs);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (2)
59CachedResourceScope cachedScope; 114CachedResourceScope cachedScope,
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (1)
79var cachedScope = GetOrAddCachedScope(connection, transaction, cachedResource, scopeSpans.Scope, CachedTelemetryType.Traces);