Skip to content

Commit 601ea5e

Browse files
committed
feat(core): Rename inboundFiltersIntegration to eventFiltersIntegration
1 parent 136370c commit 601ea5e

File tree

23 files changed

+151
-67
lines changed

23 files changed

+151
-67
lines changed

packages/angular/src/sdk.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export function getDefaultIntegrations(_options: BrowserOptions = {}): Integrati
3333
// - https://github.com/getsentry/sentry-javascript/issues/5417#issuecomment-1453407097
3434
// - https://github.com/getsentry/sentry-javascript/issues/2744
3535
return [
36+
// TODO(v10): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
3637
inboundFiltersIntegration(),
3738
functionToStringIntegration(),
3839
breadcrumbsIntegration(),

packages/astro/src/index.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ export {
5959
hapiIntegration,
6060
httpIntegration,
6161
inboundFiltersIntegration,
62+
eventFiltersIntegration,
6263
initOpenTelemetry,
6364
isInitialized,
6465
kafkaIntegration,

packages/aws-serverless/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export {
5454
localVariablesIntegration,
5555
requestDataIntegration,
5656
functionToStringIntegration,
57+
// eslint-disable-next-line deprecation/deprecation
5758
inboundFiltersIntegration,
59+
eventFiltersIntegration,
5860
linkedErrorsIntegration,
5961
setMeasurement,
6062
getActiveSpan,

packages/browser/src/exports.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ export {
4949
withScope,
5050
withIsolationScope,
5151
functionToStringIntegration,
52+
// eslint-disable-next-line deprecation/deprecation
5253
inboundFiltersIntegration,
54+
eventFiltersIntegration,
5355
dedupeIntegration,
5456
parameterize,
5557
startSession,

packages/browser/src/sdk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
3434
* `getDefaultIntegrations` but with an adjusted set of integrations.
3535
*/
3636
return [
37+
// TODO(v10): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
38+
// eslint-disable-next-line deprecation/deprecation
3739
inboundFiltersIntegration(),
3840
functionToStringIntegration(),
3941
browserApiErrorsIntegration(),

packages/browser/test/index.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
getGlobalScope,
1111
getIsolationScope,
1212
getReportDialogEndpoint,
13-
inboundFiltersIntegration,
13+
eventFiltersIntegration,
1414
lastEventId,
1515
} from '@sentry/core';
1616
import * as utils from '@sentry/core';
@@ -304,12 +304,12 @@ describe('SentryBrowser', () => {
304304
expect(localBeforeSend).toHaveBeenCalledTimes(2);
305305
});
306306

307-
it('should use inboundfilter rules of bound client', async () => {
307+
it('should use eventFilters rules of bound client', async () => {
308308
const localBeforeSend = vi.fn();
309309
const options = getDefaultBrowserClientOptions({
310310
beforeSend: localBeforeSend,
311311
dsn,
312-
integrations: [inboundFiltersIntegration({ ignoreErrors: ['capture'] })],
312+
integrations: [eventFiltersIntegration({ ignoreErrors: ['capture'] })],
313313
});
314314
const client = new BrowserClient(options);
315315
setCurrentClient(client);

packages/bun/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ export {
7474
requestDataIntegration,
7575
fsIntegration,
7676
functionToStringIntegration,
77+
// eslint-disable-next-line deprecation/deprecation
7778
inboundFiltersIntegration,
79+
eventFiltersIntegration,
7880
linkedErrorsIntegration,
7981
setMeasurement,
8082
getActiveSpan,

packages/bun/src/sdk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export function getDefaultIntegrations(_options: Options): Integration[] {
2828
// We return a copy of the defaultIntegrations here to avoid mutating this
2929
return [
3030
// Common
31+
// TODO(v10): Replace with eventFiltersIntegration once we remove the deprecated `inboundFiltersIntegration`
32+
// eslint-disable-next-line deprecation/deprecation
3133
inboundFiltersIntegration(),
3234
functionToStringIntegration(),
3335
linkedErrorsIntegration(),

packages/cloudflare/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ export {
6565
getSpanDescendants,
6666
continueTrace,
6767
functionToStringIntegration,
68+
// eslint-disable-next-line deprecation/deprecation
6869
inboundFiltersIntegration,
70+
eventFiltersIntegration,
6971
linkedErrorsIntegration,
7072
requestDataIntegration,
7173
extraErrorDataIntegration,

packages/cloudflare/src/sdk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export function getDefaultIntegrations(options: CloudflareOptions): Integration[
2020
const sendDefaultPii = options.sendDefaultPii ?? false;
2121
return [
2222
dedupeIntegration(),
23+
// TODO(v10): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`
24+
// eslint-disable-next-line deprecation/deprecation
2325
inboundFiltersIntegration(),
2426
functionToStringIntegration(),
2527
linkedErrorsIntegration(),

0 commit comments

Comments
 (0)