Skip to content

Commit 6979b41

Browse files
authored
Merge pull request #154 from getsentry/feat-replay-upgrade-latest-sdk
chore(replay): Upgrade @sentry SDKs to 7.47.0
2 parents 26a60ea + 2a5e9ab commit 6979b41

File tree

3 files changed

+143
-98
lines changed

3 files changed

+143
-98
lines changed

client/package-lock.json

Lines changed: 131 additions & 83 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"private": true,
33
"dependencies": {
4-
"@sentry/browser": "^7.18.0",
5-
"@sentry/core": "^7.18.0",
6-
"@sentry/hub": "^7.18.0",
7-
"@sentry/react": "^7.18.0",
4+
"@sentry/browser": "^7.47.0",
5+
"@sentry/core": "^7.47.0",
6+
"@sentry/hub": "^7.47.0",
7+
"@sentry/react": "^7.47.0",
88
"@sentry/replay": "^0.6.14-6",
9-
"@sentry/tracing": "^7.18.0",
10-
"@sentry/types": "^7.18.0",
11-
"@sentry/utils": "^7.18.0",
9+
"@sentry/tracing": "^7.47.0",
10+
"@sentry/types": "^7.47.0",
11+
"@sentry/utils": "^7.47.0",
1212
"jest-environment-jsdom-sixteen": "^2.0.0",
1313
"prop-types": "^15.5.10",
1414
"react": "^15.6.1",

client/src/index.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import React from 'react';
22
import ReactDOM from 'react-dom';
33
import * as Sentry from '@sentry/react';
4-
import { BrowserTracing } from '@sentry/tracing';
5-
import { Replay } from '@sentry/replay';
64

75
import './index.css';
86
import App from './App';
@@ -12,15 +10,14 @@ if (process.env.REACT_APP_SENTRY_DSN) {
1210
debug: true,
1311
dsn: process.env.REACT_APP_SENTRY_DSN,
1412
release: process.env.REACT_APP_GIT_SHA,
13+
replaysSessionSampleRate: 1.0,
14+
tracesSampleRate: 1.0,
1515
integrations: [
16-
new BrowserTracing({
16+
new Sentry.BrowserTracing({
1717
tracingOrigins: ['sourcemaps.io']
1818
}),
19-
new Replay({
20-
sessionSampleRate: 1.0
21-
})
22-
],
23-
tracesSampleRate: 1.0
19+
new Sentry.Replay()
20+
]
2421
});
2522
}
2623

0 commit comments

Comments
 (0)