[codex] trace tools build latency (#28782)

Add more tracing spans around tool building.
This commit is contained in:
Owen Lin
2026-06-17 14:53:54 -07:00
committed by GitHub
Unverified
parent 243243ab8f
commit 38211a3ff8
8 changed files with 48 additions and 0 deletions
+9
View File
@@ -942,6 +942,14 @@ impl PluginsManager {
Ok(featured_plugin_ids)
}
#[instrument(
level = "trace",
skip_all,
fields(
plugins_enabled = config.plugins_enabled,
remote_plugin_enabled = config.remote_plugin_enabled
)
)]
pub async fn recommended_plugins_mode_for_config(
&self,
config: &PluginsConfigInput,
@@ -1014,6 +1022,7 @@ impl PluginsManager {
/// Returns endpoint recommendations eligible for installation in the current client.
/// `None` selects the legacy discovery workflow.
#[instrument(level = "trace", skip_all)]
pub async fn recommended_plugin_candidates_for_config(
&self,
input: RecommendedPluginCandidatesInput<'_>,
+2
View File
@@ -27,6 +27,7 @@ use std::fs;
use std::path::Path;
use std::path::PathBuf;
use std::time::Duration;
use tracing::instrument;
use url::Url;
mod catalog_cache;
@@ -805,6 +806,7 @@ pub async fn fetch_and_cache_global_remote_plugin_catalog(
Ok(())
}
#[instrument(level = "trace", skip_all)]
pub async fn fetch_recommended_plugins(
config: &RemotePluginServiceConfig,
auth: Option<&CodexAuth>,