sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Add user email and name to feedback

Open bruno-garcia opened this issue 4 months ago • 0 comments

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 via hint.captureContext.user in the captureFeedback options. This replaces the previous approach of setting the user email via the 'user.email' tag.
  • Message Body: The message property 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', and gameEngines were removed, retaining only feature and githubProfile.

These modifications ensure user information is captured correctly according to Sentry's API and provide a structured, human-readable feedback message.

bruno-garcia avatar Jun 13 '25 15:06 bruno-garcia