sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

Capture Replays with User Feedback

Open jasonwarta opened this issue 1 year ago • 0 comments

Problem Statement

I would like to have the option of configuring replay sample rate in the context of User Feedback, so I can see a replay or screenshot attached to any User Feedback.

My current (non-sentry) way of collecting feedback allows users to submit a supporting screenshot for issues that don't trigger an exception, and I could move away from that if Sentry automatically attached this context to Feedback.

Solution Brainstorm

Add an option to either the root config object or the user feedback integration config similar to the option for errors.


  // If the entire session is not sampled, use the below sample rate to sample
  // sessions when an error occurs.
  replaysOnErrorSampleRate: 1.0,

  // PROPOSED
  // If the entire session is not sampled, use the below sample rate to sample
  // sessions when user feedback was submitted
  replaysOnFeedbackSampleRate: 1.0,

jasonwarta avatar Feb 08 '24 21:02 jasonwarta