Skip to content

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

Open
@rodolfoBee

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions