mirror of
https://github.com/openai/codex.git
synced 2026-11-20 22:40:37 +00:00
Measure plugin recommendation latency during initial context setup (#62326)
Record how long initial context assembly waits for prompt-only plugin recommendations in `codex.initial_context.plugin_recommendations_wait_ms`. Use named info-level spans for loading recommendations, reading the tooling change marker, and fetching the recommendation catalog. GitOrigin-RevId: 67b26f79252f8cba6e770f43df252ec1d73a569f
This commit is contained in:
@@ -1160,7 +1160,11 @@ pub fn invalidate_cached_remote_plugin_catalog_scopes(
|
||||
}
|
||||
}
|
||||
|
||||
#[instrument(level = "trace", skip_all)]
|
||||
#[instrument(
|
||||
name = "plugins.recommendations.read_tooling_marker",
|
||||
level = "info",
|
||||
skip_all
|
||||
)]
|
||||
pub(crate) async fn fetch_tooling_changed_at(
|
||||
config: &RemotePluginServiceConfig,
|
||||
auth: Option<&CodexAuth>,
|
||||
@@ -1181,7 +1185,11 @@ pub(crate) async fn fetch_tooling_changed_at(
|
||||
})
|
||||
}
|
||||
|
||||
#[instrument(level = "trace", skip_all)]
|
||||
#[instrument(
|
||||
name = "plugins.recommendations.fetch_catalog",
|
||||
level = "info",
|
||||
skip_all
|
||||
)]
|
||||
pub async fn fetch_recommended_plugins(
|
||||
config: &RemotePluginServiceConfig,
|
||||
auth: Option<&CodexAuth>,
|
||||
|
||||
Reference in New Issue
Block a user