mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Make tool telemetry tag collection synchronous (#36168)
## What changed Return telemetry tags directly from `CoreToolRuntime::telemetry_tags` instead of wrapping them in a future, and update the MCP runtime and tool registry call site accordingly. GitOrigin-RevId: 54e03972fe23c0e644c68c73af504dba0871be8e
This commit is contained in:
1 parent
13ddc7aa57
commit
b445967cc0
2 files changed
+10
-21
No files matched your search
@@ -179,17 +179,12 @@ impl CoreToolRuntime for McpHandler {
|
||||
}))
|
||||
}
|
||||
|
||||
fn telemetry_tags<'a>(
|
||||
&'a self,
|
||||
_invocation: &'a ToolInvocation,
|
||||
) -> BoxFuture<'a, ToolTelemetryTags> {
|
||||
Box::pin(async {
|
||||
let mut tags = vec![("mcp_server", self.tool_info.server_name.clone())];
|
||||
if let Some(origin) = &self.tool_info.server_origin {
|
||||
tags.push(("mcp_server_origin", origin.clone()));
|
||||
}
|
||||
tags
|
||||
})
|
||||
fn telemetry_tags(&self, _invocation: &ToolInvocation) -> ToolTelemetryTags {
|
||||
let mut tags = vec![("mcp_server", self.tool_info.server_name.clone())];
|
||||
if let Some(origin) = &self.tool_info.server_origin {
|
||||
tags.push(("mcp_server_origin", origin.clone()));
|
||||
}
|
||||
tags
|
||||
}
|
||||
|
||||
fn pre_tool_use_payload(&self, invocation: &ToolInvocation) -> Option<PreToolUsePayload> {
|
||||
|
||||
Reference in new issue
Block a user