[codex] trace tools build latency (#28782)

Add more tracing spans around tool building.
This commit is contained in:
Owen Lin authored and GitHub committed 2026-06-17 14:53:54 -07:00
1 parent 243243ab8f
commit 38211a3ff8
8 files changed
+48

No files matched your search

+2
View File
@@ -34,6 +34,7 @@ use codex_tools::ToolSearchInfo;
use codex_tools::ToolSpec;
use futures::future::BoxFuture;
use serde_json::Value;
use tracing::instrument;
pub(crate) type ToolTelemetryTags = Vec<(&'static str, String)>;
@@ -327,6 +328,7 @@ impl ToolRegistry {
Self { tools }
}
#[instrument(level = "trace", skip_all)]
pub(crate) fn from_tools(tools: impl IntoIterator<Item = Arc<dyn CoreToolRuntime>>) -> Self {
let mut tools_by_name = HashMap::new();
for tool in tools {