Tool execution metrics (#21587)

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/twentyhq/twenty/pull/21587?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
This commit is contained in:
Abdul Rahman
2026-06-18 14:28:47 +05:30
committed by GitHub
parent 8034c7725f
commit ccc77932a0
15 changed files with 310 additions and 28 deletions
@@ -25,8 +25,17 @@ export enum MetricsKeys {
WorkflowRunSystemError = 'workflow-run/system-error',
AiChatToolExecutionSucceeded = 'ai-chat/tool-execution-succeeded',
AiChatToolExecutionFailed = 'ai-chat/tool-execution-failed',
AiChatToolLearnedSucceeded = 'ai-chat/tool-learned-succeeded',
AiChatToolLearnedFailed = 'ai-chat/tool-learned-failed',
AiChatSkillLoadedSucceeded = 'ai-chat/skill-loaded-succeeded',
AiChatSkillLoadedFailed = 'ai-chat/skill-loaded-failed',
WorkflowAgentToolExecutionSucceeded = 'workflow-agent/tool-execution-succeeded',
WorkflowAgentToolExecutionFailed = 'workflow-agent/tool-execution-failed',
McpToolExecutionSucceeded = 'mcp/tool-execution-succeeded',
McpToolExecutionFailed = 'mcp/tool-execution-failed',
AiChatToolOutputTokens = 'ai-chat/tool-output-tokens',
WorkflowAgentToolOutputTokens = 'workflow-agent/tool-output-tokens',
McpToolOutputTokens = 'mcp/tool-output-tokens',
AiChatInputTokens = 'ai-chat/input-tokens',
AiChatOutputTokens = 'ai-chat/output-tokens',
AiChatCacheReadTokens = 'ai-chat/cache-read-tokens',