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:
@@ -519,6 +519,17 @@ export class RedeemService {
|
||||
REDEEM_TOKEN_TTL_SECONDS,
|
||||
);
|
||||
|
||||
this.analyticsService.trackOneSafe(userId, 'USER_H5', {
|
||||
eventName: 'benefit_redeem_start',
|
||||
refType: body.storeId ? 'STORE' : 'BENEFIT_COUPON',
|
||||
refId: body.storeId ? BigInt(body.storeId) : primaryCouponId,
|
||||
extraJson: {
|
||||
amount: body.amount,
|
||||
storeId: body.storeId ?? null,
|
||||
couponId: primaryCouponId.toString(),
|
||||
},
|
||||
});
|
||||
|
||||
return { token, expireAt, amount: body.amount, boundStoreId: body.storeId ?? null };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user