File tree 3 files changed +13
-1
lines changed
3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ You can [read more about the new performance APIs here](./docs/v8-new-performanc
21
21
22
22
## Deprecate ` Sentry.lastEventId() ` and ` hub.lastEventId() `
23
23
24
- ` Sentry.lastEventId() ` sometimes causes race conditons , so we are deprecating it in favour of the ` beforeSend ` callback.
24
+ ` Sentry.lastEventId() ` sometimes causes race conditions , so we are deprecating it in favour of the ` beforeSend ` callback.
25
25
26
26
``` js
27
27
// Before
@@ -48,6 +48,12 @@ Sentry.init({
48
48
});
49
49
```
50
50
51
+ ## Deprecated fields on ` Hub `
52
+
53
+ In v8, the Hub class will be removed. The following methods are therefore deprecated:
54
+
55
+ - ` hub.shouldSendDefaultPii() ` : Access Sentry client option via ` Sentry.getClient().getOptions().sendDefaultPii ` instead
56
+
51
57
## Deprecated fields on ` Span ` and ` Transaction `
52
58
53
59
In v8, the Span class is heavily reworked. The following properties & methods are thus deprecated:
Original file line number Diff line number Diff line change @@ -548,6 +548,9 @@ Sentry.init({...});
548
548
/**
549
549
* Returns if default PII should be sent to Sentry and propagated in ourgoing requests
550
550
* when Tracing is used.
551
+ *
552
+ * @deprecated Use top-level `getClient().getOptions().sendDefaultPii` instead. This function
553
+ * only unnecessarily increased API surface but only wrapped accessing the option.
551
554
*/
552
555
public shouldSendDefaultPii ( ) : boolean {
553
556
const client = this . getClient ( ) ;
Original file line number Diff line number Diff line change @@ -247,6 +247,9 @@ export interface Hub {
247
247
/**
248
248
* Returns if default PII should be sent to Sentry and propagated in ourgoing requests
249
249
* when Tracing is used.
250
+ *
251
+ * @deprecated Use top-level `getClient().getOptions().sendDefaultPii` instead. This function
252
+ * only unnecessarily increased API surface but only wrapped accessing the option.
250
253
*/
251
254
shouldSendDefaultPii ( ) : boolean ;
252
255
}
You can’t perform that action at this time.
0 commit comments