Otlp\Storage\SqliteTelemetryRepository.Caching.cs (10)
195if (resource.Scopes.TryGetValue(incomingScope.Name, out var resourceScope))
201if (!_cachedScopesByName.TryGetValue(incomingScope.Name, out var cachedScope))
214""", new { ScopeName = incomingScope.Name }, transaction);
228throw new InvalidOperationException($"Scope limit of {TelemetryRepositoryLimits.MaxScopeCount} reached. Scope '{incomingScope.Name}' will not be added.");
235""", new { ScopeName = incomingScope.Name, ScopeVersion = incomingScope.Version }, transaction);
253cachedScope = GetOrAddCachedScope(scopeId, incomingScope.Name, incomingScope.Version, incomingScope.Attributes);
653_cachedScopesByName[scope.Name] = cachedScope;
659if (!resource.Scopes.TryGetValue(scope.Scope.Name, out var resourceScope))
662resource.Scopes.Add(scope.Scope.Name, resourceScope);
711.Where(scope => string.Equals(scope.Scope.Scope.Name, meterName, StringComparison.Ordinal))