There was an error while loading. Please reload this page.
1 parent 28ffcf2 commit b81c66eCopy full SHA for b81c66e
1 file changed
apps/sim/lib/copilot/request/metrics.ts
@@ -87,14 +87,14 @@ export function recordSimToolMetric(
87
durationMs: number
88
): void {
89
const { toolDuration, toolCalls } = instruments()
90
- const baseAttrs = {
+ const attrs = {
91
[TraceAttr.ToolName]: cappedToolName(name),
92
[TraceAttr.ToolExecutor]: 'sim',
93
[TraceAttr.ToolOutcome]: outcome,
94
[TraceAttr.GenAiAgentName]: cappedAgentId(agentId),
95
}
96
- toolCalls.add(1, baseAttrs)
97
- if (durationMs >= 0) toolDuration.record(durationMs, baseAttrs)
+ toolCalls.add(1, attrs)
+ if (durationMs >= 0) toolDuration.record(durationMs, attrs)
98
99
100
// recordVfsMaterialize records VFS materialization time. Call once per phase
0 commit comments