1 instantiation of CachedResourceView
Aspire.Dashboard (1)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (1)
635cachedView = new CachedResourceView(resourceViewId, view);
13 references to CachedResourceView
Aspire.Dashboard (13)
Otlp\Storage\SqliteTelemetryRepository.Caching.cs (9)
99private CachedResourceView GetOrAddCachedResourceView( 108if (resource.ViewsByProperties.TryGetValue(incomingView.Properties, out var cachedView)) 265CachedResourceView resourceView, 340CachedResourceView resourceView, 627private static CachedResourceView AddCachedResourceView(CachedResource resource, long resourceViewId, KeyValuePair<string, string>[] properties) 629if (resource.ViewsById.TryGetValue(resourceViewId, out var cachedView)) 725var view = resource.ViewsById[resourceViewId]; 764public Dictionary<long, CachedResourceView> ViewsById { get; } = []; 765public Dictionary<KeyValuePair<string, string>[], CachedResourceView> ViewsByProperties { get; } = new(ResourceViewPropertiesComparer.Instance);
Otlp\Storage\SqliteTelemetryRepository.Logs.cs (1)
43var cachedView = GetOrAddCachedResourceView(connection, transaction, cachedResource, resourceLogsItem.Resource.Attributes);
Otlp\Storage\SqliteTelemetryRepository.Metrics.Writes.cs (2)
44CachedResourceView cachedView; 113CachedResourceView cachedView,
Otlp\Storage\SqliteTelemetryRepository.Traces.Writes.cs (1)
61var cachedView = GetOrAddCachedResourceView(connection, transaction, cachedResource, resourceSpansItem.Resource.Attributes);