fix: use agent role for first heartbeat telemetry

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
dotta 2026-04-02 09:18:26 -05:00
parent daea94a2ed
commit 85e6371cb6
2 changed files with 36 additions and 3 deletions

View file

@ -1832,7 +1832,7 @@ export function heartbeatService(db: Db) {
if (isFirstHeartbeat && updated) {
const tc = getTelemetryClient();
if (tc) trackAgentFirstHeartbeat(tc, { agentRole: updated.adapterType });
if (tc) trackAgentFirstHeartbeat(tc, { agentRole: updated.role });
}
if (updated) {