feat(analytics): persona logging upgrade and Sentry system config
Add client-logging SDK, expanded event taxonomy, API observability, admin domain events UI, and move SENTRY_DSN to HQ system settings with @sentry/node bootstrap after config preload. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1476,6 +1476,17 @@ export class AuthService {
|
||||
data,
|
||||
include: { avatar: true },
|
||||
});
|
||||
this.analyticsService.trackOneSafe(userId, 'USER_MINI', {
|
||||
eventName: 'profile_update',
|
||||
refType: 'USER',
|
||||
refId: userId,
|
||||
extraJson: {
|
||||
fields: [
|
||||
...(data.nickname ? ['nickname'] : []),
|
||||
...(data.avatarResourceId ? ['avatar'] : []),
|
||||
],
|
||||
},
|
||||
});
|
||||
return this.formatUserProfile(updated);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user