File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 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
2121
2222## Deprecate ` Sentry.lastEventId() ` and ` hub.lastEventId() `
2323
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.
2525
2626``` js
2727// Before
@@ -48,6 +48,12 @@ Sentry.init({
4848});
4949```
5050
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+
5157## Deprecated fields on ` Span ` and ` Transaction `
5258
5359In 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({...});
548548 /**
549549 * Returns if default PII should be sent to Sentry and propagated in ourgoing requests
550550 * 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.
551554 */
552555 public shouldSendDefaultPii ( ) : boolean {
553556 const client = this . getClient ( ) ;
Original file line number Diff line number Diff line change @@ -247,6 +247,9 @@ export interface Hub {
247247 /**
248248 * Returns if default PII should be sent to Sentry and propagated in ourgoing requests
249249 * 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.
250253 */
251254 shouldSendDefaultPii ( ) : boolean ;
252255}
You can’t perform that action at this time.
0 commit comments