feat(platform): extend session and guild.open span metadata (v0.8.532)
Add spanKind and activeChannelId on session.startup; memberCount, guildCount, and spanKind on guild.open. Co-authored-by: Cursor <[email protected]>
This commit is contained in:
@@ -181,6 +181,8 @@ Expose a single `EventEmitter` API the UI drives over IPC (`apps/pearcord/index.
|
|||||||
|
|
||||||
**v0.8.419 (Phase 456):** `session.startup` span ends with `guildCount` + `guildId`; `session.startup error` log. `identity.register` span + `identity.register error`. `guild.open` span end includes `guildId`. `loadGuild` / `createGuild` bust search cache and clear `_lastSearchFromCache`. Bundle: `npm run test:phase456-onboarding-session`. See [SESSION.md](../../docs/SESSION.md).
|
**v0.8.419 (Phase 456):** `session.startup` span ends with `guildCount` + `guildId`; `session.startup error` log. `identity.register` span + `identity.register error`. `guild.open` span end includes `guildId`. `loadGuild` / `createGuild` bust search cache and clear `_lastSearchFromCache`. Bundle: `npm run test:phase456-onboarding-session`. See [SESSION.md](../../docs/SESSION.md).
|
||||||
|
|
||||||
|
**v0.8.532 (Phase 569):** Session spans extend — `session.startup` `spanKind`/`activeChannelId`; `guild.open` `memberCount`/`guildCount`/`channelCount`/`spanKind`. UI `#session-panel-live` + `syncSessionLivePanelDuringGuildLoading`; **session-errors** excludes settings/invite bleed; clipboard `sessionPanelLiveBusy`/`sessionBootChromeBusy`/`channelSessionGuildCount`. Bundle: `npm run test:phase569-session`. See [SESSION.md](../../docs/SESSION.md).
|
||||||
|
|
||||||
**v0.8.530 (Phase 567):** Onboarding spans extend — `identity.register`/`guild.create`/`invite.join` `activeChannelId`; `guild.create`/`invite.join` `textChannelCount`. UI `#onboarding-panel-live` + `syncOnboardingLivePanelDuringGuildLoading`; **onboarding-errors** excludes dm/contacts/discovery/invites bleed; clipboard `onboardingPanelLiveBusy`/`onboardingRailChromeBusy`/`channelOnboardingGuildCount`. Bundle: `npm run test:phase567-onboarding`. See [ONBOARDING.md](../../docs/ONBOARDING.md).
|
**v0.8.530 (Phase 567):** Onboarding spans extend — `identity.register`/`guild.create`/`invite.join` `activeChannelId`; `guild.create`/`invite.join` `textChannelCount`. UI `#onboarding-panel-live` + `syncOnboardingLivePanelDuringGuildLoading`; **onboarding-errors** excludes dm/contacts/discovery/invites bleed; clipboard `onboardingPanelLiveBusy`/`onboardingRailChromeBusy`/`channelOnboardingGuildCount`. Bundle: `npm run test:phase567-onboarding`. See [ONBOARDING.md](../../docs/ONBOARDING.md).
|
||||||
|
|
||||||
**v0.8.474 (Phase 511):** Onboarding spans — `identity.register` (`usernameLen`, `displayNameLen`, `hadGuilds`), `guild.create` (`channelCount`, `isFirstGuild`, `listOnDiscovery`), `invite.join` (`inviteLen`, `guildId`) + matching error logs. UI `syncOnboardingPanelsDuringGuildLoading`, `#composer-onboarding-hint`, dev-log onboarding-errors + clipboard meta. Bundle: `npm run test:phase511-onboarding`. See [ONBOARDING.md](../../docs/ONBOARDING.md).
|
**v0.8.474 (Phase 511):** Onboarding spans — `identity.register` (`usernameLen`, `displayNameLen`, `hadGuilds`), `guild.create` (`channelCount`, `isFirstGuild`, `listOnDiscovery`), `invite.join` (`inviteLen`, `guildId`) + matching error logs. UI `syncOnboardingPanelsDuringGuildLoading`, `#composer-onboarding-hint`, dev-log onboarding-errors + clipboard meta. Bundle: `npm run test:phase511-onboarding`. See [ONBOARDING.md](../../docs/ONBOARDING.md).
|
||||||
|
|||||||
@@ -515,7 +515,9 @@ class PearcordPlatform extends EventEmitter {
|
|||||||
logLevel: startupGuildMeshBounded ? 'info' : undefined,
|
logLevel: startupGuildMeshBounded ? 'info' : undefined,
|
||||||
guildMeshBounded: startupGuildMeshBounded,
|
guildMeshBounded: startupGuildMeshBounded,
|
||||||
guildCount: this.guilds?.length || 0,
|
guildCount: this.guilds?.length || 0,
|
||||||
guildId: this.guild?.guild?.id || null
|
guildId: this.guild?.guild?.id || null,
|
||||||
|
activeChannelId: this.activeChannelId || null,
|
||||||
|
spanKind: 'session.startup'
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._sessionError = err?.message || String(err)
|
this._sessionError = err?.message || String(err)
|
||||||
@@ -6980,8 +6982,12 @@ class PearcordPlatform extends EventEmitter {
|
|||||||
span.end({
|
span.end({
|
||||||
guildId: guildRecord.id,
|
guildId: guildRecord.id,
|
||||||
channels: channels.length,
|
channels: channels.length,
|
||||||
|
channelCount: channels.length,
|
||||||
|
memberCount: memberRows.length,
|
||||||
activeChannelId: this.activeChannelId,
|
activeChannelId: this.activeChannelId,
|
||||||
|
guildCount: (this.guilds || []).length,
|
||||||
noViewableChannels: !!this._guildOpenNoViewableChannels,
|
noViewableChannels: !!this._guildOpenNoViewableChannels,
|
||||||
|
spanKind: 'guild.open',
|
||||||
logLevel:
|
logLevel:
|
||||||
this._guildOpenNoViewableChannels || this._lastGuildMeshFlushBounded
|
this._guildOpenNoViewableChannels || this._lastGuildMeshFlushBounded
|
||||||
? 'info'
|
? 'info'
|
||||||
|
|||||||
Reference in New Issue
Block a user