Otlp\Storage\TelemetryRepository.cs (26)
46private readonly ConcurrentDictionary<ResourceKey, OtlpResource> _resources = new();
53private readonly Dictionary<ResourceKey, int> _resourceUnviewedErrorLogs = new();
143public OtlpResource? GetResource(ResourceKey key)
147throw new InvalidOperationException($"{nameof(ResourceKey)} must have an instance ID.");
154public List<OtlpResource> GetResources(ResourceKey key, bool includeUninstrumentedPeers = false)
170public Dictionary<ResourceKey, int> GetResourceUnviewedErrorLogsCount()
184internal void MarkViewedErrorLogs(ResourceKey? key)
220var key = resource.GetResourceKey();
231private (OtlpResource Resource, bool IsNew) GetOrAddResource(ResourceKey key, bool uninstrumentedPeer)
264public Subscription OnNewLogs(ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback)
269public Subscription OnNewMetrics(ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback)
274public Subscription OnNewTraces(ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback)
279private Subscription AddSubscription(string name, ResourceKey? resourceKey, SubscriptionType subscriptionType, Func<Task> callback, List<Subscription> subscriptions)
536public List<string> GetLogPropertyKeys(ResourceKey? resourceKey)
563public List<string> GetTracePropertyKeys(ResourceKey? resourceKey)
671private static bool MatchResources(ResourceKey resourceKey, List<OtlpResource> resources)
688var resourceKey = resources[i].ResourceKey;
780public void ClearTraces(ResourceKey? resourceKey = null)
823public void ClearStructuredLogs(ResourceKey? resourceKey = null)
867private void ClearResource(ResourceKey resourceKey)
875public void ClearMetrics(ResourceKey? resourceKey = null)
1319var resourceKey = ResourceKey.Create(name: peer.DisplayName, instanceId: peer.Name);
1341var resourceKey = ResourceKey.Create(name: uninstrumentedPeer.DisplayName, instanceId: uninstrumentedPeer.Name);
1477public List<OtlpInstrumentSummary> GetInstrumentsSummaries(ResourceKey key)