mirror of
https://github.com/pchuan98/codex.git
synced 2026-07-01 00:31:56 +08:00
[codex] trace tools build latency (#28782)
Add more tracing spans around tool building.
This commit is contained in:
committed by
GitHub
Unverified
parent
243243ab8f
commit
38211a3ff8
@@ -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<'_>,
|
||||
|
||||
@@ -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>,
|
||||
|
||||
Reference in New Issue
Block a user