sentry
sentry copied to clipboard
Add user email and name to feedback
The captureFeedback call in static/app/views/settings/project/tempest/PlayStationSdkAccessModal.tsx was significantly refactored to align with Sentry's recommended API for user context and to customize the feedback message.
Changes include:
-
User Context: User details (
id,email,username,name) are now passed viahint.captureContext.userin thecaptureFeedbackoptions. This replaces the previous approach of setting the user email via the'user.email'tag. -
Message Body: The
messageproperty now constructs a multi-line string containing:-
User: [Name] -
Email: [Email] -
Engines: [Engine1, Engine2](formatted with human-readable labels) -
Org Slug: [Org Slug]
-
- Game Engines: Game engines are now included directly in the message body, formatted for readability, instead of being stored as a separate tag.
-
Tag Cleanup: Redundant tags such as
'user.email','org.slug', andgameEngineswere removed, retaining onlyfeatureandgithubProfile.
These modifications ensure user information is captured correctly according to Sentry's API and provide a structured, human-readable feedback message.