Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dev-packages/e2e-tests/maestro/utils/sentryApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ switch (fetch) {
}
case 'replay': {
const event = json(fetchFromSentry(`${baseUrl}/events/${eventId}/json/`));
const replayId = event._dsc.replay_id.replace(/\-/g, '');
// Try to get replay_id from contexts first (where SDK puts it), fallback to _dsc
const replayId = (event.contexts?.replay?.replay_id || event._dsc?.replay_id)?.replace(/\-/g, '');
if (!replayId) {
throw new Error(`No replay_id found in event ${eventId}. Checked contexts.replay.replay_id and _dsc.replay_id`);
}
const replay = json(fetchFromSentry(`${baseUrl}/replays/${replayId}/`));
const segment = fetchFromSentry(`${baseUrl}/replays/${replayId}/videos/0/`);

Expand Down
4 changes: 1 addition & 3 deletions dev-packages/e2e-tests/patch-scripts/rn.patch.app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ Sentry.init({
release: '${SENTRY_RELEASE}',
dist: '${SENTRY_DIST}',
dsn: 'https://1df17bd4e543fdb31351dee1768bb679@o447951.ingest.sentry.io/5428561',
_experiments: {
replaysOnErrorSampleRate: LaunchArguments.value().replaysOnErrorSampleRate,
},
replaysOnErrorSampleRate: LaunchArguments.value().replaysOnErrorSampleRate,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is irrelevant. It's just that replaysOnErrorSampleRate does no longer need to be under _experiments

integrations: [
Sentry.mobileReplayIntegration(),
Sentry.feedbackIntegration({
Expand Down
Loading