feat(platform): contacts span guildCount metadata (Phase 594)

Extend contacts.request, accept, decline, block, and unblock span
ends with guildCount for hub-depth telemetry parity.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
Raven Scott
2026-05-24 17:02:57 -04:00
co-authored by Cursor
parent 39a1bac4cc
commit c167683a7f
2 changed files with 12 additions and 5 deletions
+2
View File
@@ -55,6 +55,8 @@ Expose a single `EventEmitter` API the UI drives over IPC (`apps/pearcord/index.
**v0.8.528 (Phase 565):** DM UI live region `#dm-panel-live`; **dm-errors** excludes voice/stage/screen/soundboard/presence/discovery/contacts bleed; clipboard `dmPanelLiveBusy`/`channelDmConversationCount`. Bundle: `npm run test:phase565-dms`. See [DM.md](../../docs/DM.md).
**v0.8.557 (Phase 594):** Contacts hub live region `#contacts-hub-panel-live`; **contacts-errors** excludes audit/compliance/slash/webhook/bot/automation/attachment/embed/message/reaction/pin/search/voice/stage/screen/soundboard/presence/discovery bleed; clipboard `contactsHubPanelLiveBusy`; `guildCount` on `contacts.request`/`accept`/`decline`/`block`/`unblock` span ends. Bundle: `npm run test:phase594-contacts`. See [CONTACTS.md](../../docs/CONTACTS.md).
**v0.8.527 (Phase 564):** Contacts UI live region `#contacts-panel-live`; **contacts-errors** excludes voice/stage/screen/soundboard/presence/discovery bleed; clipboard `contactsPanelLiveBusy`/`channelContactsAcceptedCount`. Bundle: `npm run test:phase564-contacts`. See [CONTACTS.md](../../docs/CONTACTS.md).
**v0.8.556 (Phase 593):** Discovery hub live region `#discovery-hub-panel-live`; **discovery-errors** excludes audit/compliance/slash/webhook/bot/automation/attachment/embed/message/reaction/pin/search/voice/stage/screen/soundboard/presence bleed; clipboard `discoveryHubPanelLiveBusy`; `guildCount` on `discovery.list`/`join`/`filter`/`mesh`/`publish`/`prune` span ends; new `discovery.filter` span. Bundle: `npm run test:phase593-discovery`. See [DISCOVERY.md](../../docs/DISCOVERY.md).
+10 -5
View File
@@ -1288,7 +1288,8 @@ class PearcordPlatform extends EventEmitter {
peerDisplayNameLen: String(peerDisplayName || '').trim().length,
pendingOutCount: pendingOut.length,
acceptedCount: accepted.length,
activeChannelId: this.activeChannelId
activeChannelId: this.activeChannelId,
guildCount: (this.guilds || []).length
})
return row
} catch (err) {
@@ -1318,7 +1319,8 @@ class PearcordPlatform extends EventEmitter {
accepted: row?.status === 'accepted' || row?.status === 'friend',
acceptedCount: accepted.length,
pendingInCount: pendingIn.length,
activeChannelId: this.activeChannelId
activeChannelId: this.activeChannelId,
guildCount: (this.guilds || []).length
})
return row
} catch (err) {
@@ -1347,7 +1349,8 @@ class PearcordPlatform extends EventEmitter {
declined: true,
pendingInCount: pendingIn.length,
pendingOutCount: pendingOut.length,
activeChannelId: this.activeChannelId
activeChannelId: this.activeChannelId,
guildCount: (this.guilds || []).length
})
return row
} catch (err) {
@@ -1379,7 +1382,8 @@ class PearcordPlatform extends EventEmitter {
spanKind: 'contacts.block',
peerUserId: peerUserId || null,
blockedCount: blocked.length,
activeChannelId: this.activeChannelId
activeChannelId: this.activeChannelId,
guildCount: (this.guilds || []).length
})
return row
} catch (err) {
@@ -1405,7 +1409,8 @@ class PearcordPlatform extends EventEmitter {
spanKind: 'contacts.unblock',
peerUserId: peerUserId || null,
blockedCount: blocked.length,
activeChannelId: this.activeChannelId
activeChannelId: this.activeChannelId,
guildCount: (this.guilds || []).length
})
return row
} catch (err) {