Skip to content

Commit 114ce0e

Browse files
committed
docs: Migration fixes
1 parent 8ec79f1 commit 114ce0e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

MIGRATION.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Raven.captureMessage('test2', 'info', { extra: { debug: false } });
214214
_New_:
215215

216216
```js
217-
Raven.captureMessage('test1', 'info');
217+
Sentry.captureMessage('test1', 'info');
218218
Sentry.withScope(scope => {
219219
scope.setExtra('debug', false);
220220
Sentry.captureMessage('test2', 'info');
@@ -253,12 +253,12 @@ Sentry.addBreadcrumb({
253253

254254
### Ignoring Urls
255255

256-
> 'ignoreUrls' was renamed to 'blacklistUrls'. 'ignoreErrors', which has a similar name was not renamed. [Docs](https://docs.sentry.io/error-reporting/configuration/?platform=browser#blacklist-urls) and [Decluttering Sentry](https://docs.sentry.io/platforms/javascript/#decluttering-sentry)
256+
> 'ignoreUrls' was renamed to 'blacklistUrls'. 'ignoreErrors', which has a similar name was not renamed. [Docs](https://docs.sentry.io/error-reporting/configuration/?platform=browser#blacklist-urls) and [Decluttering Sentry](https://docs.sentry.io/platforms/javascript/#decluttering-sentry)
257257
258258
_Old_:
259259

260260
```js
261-
Sentry.init({
261+
Raven.config('___PUBLIC_DSN___', {
262262
ignoreUrls: [
263263
'https://www.baddomain.com',
264264
/graph\.facebook\.com/i,
@@ -284,7 +284,7 @@ Sentry.init({
284284
_Old_:
285285

286286
```js
287-
Sentry.init({
287+
Raven.config('___PUBLIC_DSN___', {
288288
shouldSendCallback(event) {
289289
// Modify the event here
290290
if(event.user){
@@ -322,7 +322,7 @@ Sentry.init({
322322
_Old_:
323323

324324
```js
325-
Sentry.init({
325+
Raven.config('___PUBLIC_DSN___', {
326326
stacktrace: true,
327327
});
328328
```

0 commit comments

Comments
 (0)