You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MIGRATION.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,30 @@ logger.info('This is an info message');
23
23
debug.log('This is an info message');
24
24
```
25
25
26
+
## Deprecated `_experiments.enableLogs` and `_experiments.beforeSendLog` options
27
+
28
+
The `_experiments.enableLogs` and `_experiments.beforeSendLog` options have been deprecated in favor of the top-level `enableLogs` and `beforeSendLog` options.
29
+
30
+
```js
31
+
// before
32
+
Sentry.init({
33
+
_experiments: {
34
+
enableLogs:true,
35
+
beforeSendLog:log=> {
36
+
return log;
37
+
},
38
+
},
39
+
});
40
+
41
+
// after
42
+
Sentry.init({
43
+
enableLogs:true,
44
+
beforeSendLog:log=> {
45
+
return log;
46
+
},
47
+
});
48
+
```
49
+
26
50
# Upgrading from 8.x to 9.x
27
51
28
52
Version 9 of the Sentry JavaScript SDK primarily introduces API cleanup and version support changes.
0 commit comments