fix: use agent role instead of adapter type in task_completed telemetry
The agent.task_completed event was sending adapterType (e.g. "claude_local") as the agent_role dimension instead of the actual role (e.g. "engineer"). Co-Authored-By: Paperclip <noreply@paperclip.ing> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
af844b778e
commit
c18b3cb414
1 changed files with 1 additions and 1 deletions
|
|
@ -1184,7 +1184,7 @@ export function issueRoutes(db: Db, storage: StorageService) {
|
|||
if (tc && actor.agentId) {
|
||||
const actorAgent = await agentsSvc.getById(actor.agentId);
|
||||
if (actorAgent) {
|
||||
trackAgentTaskCompleted(tc, { agentRole: actorAgent.adapterType });
|
||||
trackAgentTaskCompleted(tc, { agentRole: actorAgent.role });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue