Skip to content

Lots of way too long (tens of hours) replays #13778

Closed
@alimony

Description

@alimony

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

8.25.0

Framework Version

Next 14.2.12

Link to Sentry event

[redacted]

Reproduction Example/SDK Setup

Sentry.init({
  dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
  release: process.env.NEXT_PUBLIC_SENTRY_RELEASE,
  environment: djangoEnv,
  tracesSampleRate: 1.0,
  replaysOnErrorSampleRate: 1.0,
  replaysSessionSampleRate: 1.0,
  tracePropagationTargets: djangoBackendUrls,
  integrations: [
    Sentry.browserTracingIntegration(),
    Sentry.replayIntegration({
      maskAllText: false,
      blockAllMedia: false,
      maskAllInputs: false,
      networkDetailAllowUrls: djangoBackendUrls,
    }),
  ],
  beforeSend: (event, hint) => {
    console.error(hint.originalException ?? hint.syntheticException);

    if (process.env.NEXT_PUBLIC_SENTRY_DSN) {
      return event;
    } else {
      // drop the event
      return null;
    }
  },
  beforeBreadcrumb: (breadcrumb, hint) => excludeGraphQLFetch(breadcrumb, hint),
});

Steps to Reproduce

We just see these come in all the time. This is a list of replays logged in the last seven days, ordered by duration. As you can see, some are almost 100 hours long:

Image

Also, the replays themselves just show our loading screen for the entire replay.

Expected Result

All replays should be under an hour, and show normal activity.

Actual Result

See above.

Metadata

Metadata

Assignees

Labels

Package: nextjsIssues related to the Sentry Nextjs SDKPackage: replayIssues related to the Sentry Replay SDK

Type

Projects

Status

Waiting for: Community

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions