Skip to content

feat(core)!: Remove debugIntegration and sessionTimingIntegration #14747

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ const useLoader = bundleKey.startsWith('loader');
const IMPORTED_INTEGRATION_CDN_BUNDLE_PATHS: Record<string, string> = {
httpClientIntegration: 'httpclient',
captureConsoleIntegration: 'captureconsole',
debugIntegration: 'debug',
rewriteFramesIntegration: 'rewriteframes',
contextLinesIntegration: 'contextlines',
extraErrorDataIntegration: 'extraerrordata',
reportingObserverIntegration: 'reportingobserver',
sessionTimingIntegration: 'sessiontiming',
feedbackIntegration: 'feedback',
moduleMetadataIntegration: 'modulemetadata',
};
Expand Down
5 changes: 5 additions & 0 deletions docs/migration/v8-to-v9.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ It will be removed in a future major version.

## 4. Removal of Deprecated APIs (TODO)

### `@sentry/core` / All SDKs

- The `debugIntegration` has been removed. To log outgoing events, use [Hook Options](https://docs.sentry.io/platforms/javascript/configuration/options/#hooks) (`beforeSend`, `beforeSendTransaction`, ...).
- The `sessionTimingIntegration` has been removed. To capture session durations alongside events, use [Context](https://docs.sentry.io/platforms/javascript/enriching-events/context/) (`Sentry.setContext()`).

### `@sentry/react`

- The `wrapUseRoutes` method has been removed. Use `wrapUseRoutesV6` or `wrapUseRoutesV7` instead depending on what version of react router you are using.
Expand Down
4 changes: 0 additions & 4 deletions packages/astro/src/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export {
createTransport,
cron,
dataloaderIntegration,
// eslint-disable-next-line deprecation/deprecation
debugIntegration,
dedupeIntegration,
DEFAULT_USER_INCLUDES,
defaultStackParser,
Expand Down Expand Up @@ -105,8 +103,6 @@ export {
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
// eslint-disable-next-line deprecation/deprecation
sessionTimingIntegration,
setContext,
setCurrentClient,
setExtra,
Expand Down
4 changes: 0 additions & 4 deletions packages/aws-serverless/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,9 @@ export {

export {
captureConsoleIntegration,
// eslint-disable-next-line deprecation/deprecation
debugIntegration,
dedupeIntegration,
extraErrorDataIntegration,
rewriteFramesIntegration,
// eslint-disable-next-line deprecation/deprecation
sessionTimingIntegration,
} from '@sentry/core';

export { awsIntegration } from './integration/aws';
Expand Down
1 change: 0 additions & 1 deletion packages/browser/rollup.bundle.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const reexportedPluggableIntegrationFiles = [
'dedupe',
'extraerrordata',
'rewriteframes',
'sessiontiming',
'feedback',
'modulemetadata',
];
Expand Down
4 changes: 0 additions & 4 deletions packages/browser/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,8 @@ export { contextLinesIntegration } from './integrations/contextlines';

export {
captureConsoleIntegration,
// eslint-disable-next-line deprecation/deprecation
debugIntegration,
extraErrorDataIntegration,
rewriteFramesIntegration,
// eslint-disable-next-line deprecation/deprecation
sessionTimingIntegration,
captureFeedback,
} from '@sentry/core';

Expand Down
2 changes: 0 additions & 2 deletions packages/browser/src/integrations-bundle/index.debug.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
// eslint-disable-next-line deprecation/deprecation
export { debugIntegration } from '@sentry/core';
export { spotlightBrowserIntegration } from '../integrations/spotlight';

This file was deleted.

2 changes: 0 additions & 2 deletions packages/browser/src/utils/lazyLoadIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ const LazyLoadableIntegrations = {
captureConsoleIntegration: 'captureconsole',
contextLinesIntegration: 'contextlines',
linkedErrorsIntegration: 'linkederrors',
debugIntegration: 'debug',
dedupeIntegration: 'dedupe',
extraErrorDataIntegration: 'extraerrordata',
httpClientIntegration: 'httpclient',
reportingObserverIntegration: 'reportingobserver',
rewriteFramesIntegration: 'rewriteframes',
sessionTimingIntegration: 'sessiontiming',
browserProfilingIntegration: 'browserprofiling',
moduleMetadataIntegration: 'modulemetadata',
} as const;
Expand Down
4 changes: 0 additions & 4 deletions packages/bun/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,9 @@ export {

export {
captureConsoleIntegration,
// eslint-disable-next-line deprecation/deprecation
debugIntegration,
dedupeIntegration,
extraErrorDataIntegration,
rewriteFramesIntegration,
// eslint-disable-next-line deprecation/deprecation
sessionTimingIntegration,
} from '@sentry/core';

export type { BunOptions } from './types';
Expand Down
2 changes: 0 additions & 2 deletions packages/cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ export {
linkedErrorsIntegration,
requestDataIntegration,
extraErrorDataIntegration,
// eslint-disable-next-line deprecation/deprecation
debugIntegration,
dedupeIntegration,
rewriteFramesIntegration,
captureConsoleIntegration,
Expand Down
4 changes: 0 additions & 4 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,9 @@ export { linkedErrorsIntegration } from './integrations/linkederrors';
export { moduleMetadataIntegration } from './integrations/metadata';
export { requestDataIntegration } from './integrations/requestdata';
export { captureConsoleIntegration } from './integrations/captureconsole';
// eslint-disable-next-line deprecation/deprecation
export { debugIntegration } from './integrations/debug';
export { dedupeIntegration } from './integrations/dedupe';
export { extraErrorDataIntegration } from './integrations/extraerrordata';
export { rewriteFramesIntegration } from './integrations/rewriteframes';
// eslint-disable-next-line deprecation/deprecation
export { sessionTimingIntegration } from './integrations/sessiontiming';
export { zodErrorsIntegration } from './integrations/zoderrors';
export { thirdPartyErrorFilterIntegration } from './integrations/third-party-errors-filter';
// eslint-disable-next-line deprecation/deprecation
Expand Down
57 changes: 0 additions & 57 deletions packages/core/src/integrations/debug.ts

This file was deleted.

35 changes: 0 additions & 35 deletions packages/core/src/integrations/sessiontiming.ts

This file was deleted.

93 changes: 0 additions & 93 deletions packages/core/test/lib/integrations/debug.test.ts

This file was deleted.

24 changes: 0 additions & 24 deletions packages/core/test/lib/integrations/sessiontiming.test.ts

This file was deleted.

4 changes: 0 additions & 4 deletions packages/deno/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,9 @@ export {
functionToStringIntegration,
requestDataIntegration,
captureConsoleIntegration,
// eslint-disable-next-line deprecation/deprecation
debugIntegration,
dedupeIntegration,
extraErrorDataIntegration,
rewriteFramesIntegration,
// eslint-disable-next-line deprecation/deprecation
sessionTimingIntegration,
zodErrorsIntegration,
SEMANTIC_ATTRIBUTE_SENTRY_OP,
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
Expand Down
4 changes: 0 additions & 4 deletions packages/google-cloud-serverless/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,9 @@ export {

export {
captureConsoleIntegration,
// eslint-disable-next-line deprecation/deprecation
debugIntegration,
dedupeIntegration,
extraErrorDataIntegration,
rewriteFramesIntegration,
// eslint-disable-next-line deprecation/deprecation
sessionTimingIntegration,
} from '@sentry/core';

export { getDefaultIntegrations, init } from './sdk';
Expand Down
4 changes: 0 additions & 4 deletions packages/node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,10 @@ export {
captureMessage,
captureFeedback,
captureConsoleIntegration,
// eslint-disable-next-line deprecation/deprecation
debugIntegration,
dedupeIntegration,
extraErrorDataIntegration,
rewriteFramesIntegration,
// eslint-disable-next-line deprecation/deprecation
sessionTimingIntegration,
// eslint-disable-next-line deprecation/deprecation
metricsDefault as metrics,
startSession,
captureSession,
Expand Down
Loading
Loading