Skip to content

Replays from user feedback not including 30s before the widget is opened #16541

Closed

Description

@rodolfoBee

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/react

SDK Version

9.28.0

Framework Version

No response

Link to Sentry event

https://dev-curumas.sentry.io/explore/replays/84e1fccb2d8a4dbcb912f611a2c973c6/?referrer=%2Fissues%2Ffeedback%2F&t=0&t_main=breadcrumbs

Reproduction Example/SDK Setup

Sentry.init({
  dsn: "__MY_DSN__",
  integrations: [
    Sentry.reactRouterV5BrowserTracingIntegration({ history, heartbeatInterval:8000 }),
    Sentry.replayIntegration({
      maskAllText: false,
      _experiments:{
        recordCrossOriginIframes: true
      }
    }),
    Sentry.feedbackIntegration({
      // Additional SDK configuration goes in here, for example:
      colorScheme: "system",
      includeReplay: true
    }),
  ],
  replaysOnErrorSampleRate: 1.0,
  sendDefaultPii: true,
  });

Steps to Reproduce

  1. Open the page with the feedback widget.
  2. Do something on the page for 30s or more
  3. Open the widget.
  4. Wait for some time before sending the feedback

Expected Result

The replay will contain 30s before the feedback widget is opened as mentioned here:

First, make sure that the Session Replay integration is configured correctly and that replaysOnErrorSampleRate is greater than 0. When this is done, the Replay SDK will buffer up to 30 seconds of the user's session until the user opens the User Feedback widget.

Actual Result

The replays start with the widget already opened.
https://dev-curumas.sentry.io/explore/replays/84e1fccb2d8a4dbcb912f611a2c973c6/?referrer=%2Fissues%2Ffeedback%2F&t=0&t_main=breadcrumbs

More examples were reported by a user in this internal ticket.

Activity

  1. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jun 11, 2025
  2. Lms24 commented on Jun 11, 2025

    @Lms24
    Member

    Hey, I forwarded this to the Replay team on Linear (cc @billyvg @chargome)

  3. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jun 11, 2025
  4. moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jun 11, 2025
  5. billyvg commented on Jun 11, 2025

    @billyvg
    Member

    @chargome let's promote our experimental flag to production

    @rbisol can you pass on to the user they can turn on _experiments.autoFlushOnFeedback e.g.

    replayIntegration({
      _experiments: {
        autoFlushOnFeedback: true,
      }
    });
  6. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jun 11, 2025
  7. self-assigned this
    on Jun 11, 2025
  8. chargome commented on Sep 17, 2025

    @chargome
    Member

    closed by #17220

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions