From a7915cb848b42522d744479cf52a31c8dbb44767 Mon Sep 17 00:00:00 2001 From: Marshall Bowers Date: Wed, 27 Mar 2024 13:45:19 -0400 Subject: [PATCH] Look up extensions in the new index when reporting extension events (#9879) This PR fixes a bug that was causing extension telemetry events to not be reported. We need to look up the extensions in the new index, as the extensions to load won't be found in the old index. Release Notes: - N/A --- crates/extension/src/extension_store.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/extension/src/extension_store.rs b/crates/extension/src/extension_store.rs index 02fdfd97fb8cd83c5d28e03a1b46dd14221dc662..21b0044a8a69365cd03ebb1f9573c5e837c2b5ea 100644 --- a/crates/extension/src/extension_store.rs +++ b/crates/extension/src/extension_store.rs @@ -761,7 +761,7 @@ impl ExtensionStore { if let Some(telemetry) = &self.telemetry { for extension_id in &extensions_to_load { - if let Some(extension) = self.extension_index.extensions.get(extension_id) { + if let Some(extension) = new_index.extensions.get(extension_id) { telemetry.report_extension_event( extension_id.clone(), extension.manifest.version.clone(),