1 instantiation of CachedScope
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
651
cachedScope = new
CachedScope
(scopeId, scope);
11 references to CachedScope
Aspire.Dashboard (11)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (11)
25
private readonly Dictionary<string,
CachedScope
> _cachedScopesByName = new(StringComparer.Ordinal);
26
private readonly Dictionary<long,
CachedScope
> _cachedScopesById = [];
201
if (!_cachedScopesByName.TryGetValue(incomingScope.Name, out
var
cachedScope))
570
var
scope = GetOrAddCachedScope(
584
_cachedScopesById.TryGetValue(record.ScopeId, out
var
scope))
643
private
CachedScope
GetOrAddCachedScope(long scopeId, string scopeName, string scopeVersion, KeyValuePair<string, string>[] attributes)
645
if (_cachedScopesById.TryGetValue(scopeId, out
var
cachedScope))
657
private static CachedResourceScope AddCachedScope(CachedResource resource,
CachedScope
scope, CachedTelemetryType telemetryType)
729
var
scope = _cachedScopesById[scopeId];
776
private sealed class CachedResourceScope(
CachedScope
scope)
778
public
CachedScope
Scope { get; } = scope;