Skip to content

Commit f771514

Browse files
committed
feat(core)!: Remove sessionTimingIntegration
1 parent 7326fdf commit f771514

File tree

18 files changed

+1
-86
lines changed

18 files changed

+1
-86
lines changed

dev-packages/browser-integration-tests/utils/generatePlugin.ts

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ const IMPORTED_INTEGRATION_CDN_BUNDLE_PATHS: Record<string, string> = {
3434
contextLinesIntegration: 'contextlines',
3535
extraErrorDataIntegration: 'extraerrordata',
3636
reportingObserverIntegration: 'reportingobserver',
37-
sessionTimingIntegration: 'sessiontiming',
3837
feedbackIntegration: 'feedback',
3938
moduleMetadataIntegration: 'modulemetadata',
4039
};

docs/migration/v8-to-v9.md

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ It will be removed in a future major version.
9595
### `@sentry/core` / All SDKs
9696

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

99100
### `@sentry/react`
100101

packages/astro/src/index.server.ts

-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ export {
103103
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
104104
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
105105
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
106-
// eslint-disable-next-line deprecation/deprecation
107-
sessionTimingIntegration,
108106
setContext,
109107
setCurrentClient,
110108
setExtra,

packages/aws-serverless/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ export {
128128
dedupeIntegration,
129129
extraErrorDataIntegration,
130130
rewriteFramesIntegration,
131-
// eslint-disable-next-line deprecation/deprecation
132-
sessionTimingIntegration,
133131
} from '@sentry/core';
134132

135133
export { awsIntegration } from './integration/aws';

packages/browser/rollup.bundle.config.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ const reexportedPluggableIntegrationFiles = [
1010
'dedupe',
1111
'extraerrordata',
1212
'rewriteframes',
13-
'sessiontiming',
1413
'feedback',
1514
'modulemetadata',
1615
];

packages/browser/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ export {
88
captureConsoleIntegration,
99
extraErrorDataIntegration,
1010
rewriteFramesIntegration,
11-
// eslint-disable-next-line deprecation/deprecation
12-
sessionTimingIntegration,
1311
captureFeedback,
1412
} from '@sentry/core';
1513

packages/browser/src/integrations-bundle/index.sessiontiming.ts

-2
This file was deleted.

packages/browser/src/utils/lazyLoadIntegration.ts

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ const LazyLoadableIntegrations = {
1818
httpClientIntegration: 'httpclient',
1919
reportingObserverIntegration: 'reportingobserver',
2020
rewriteFramesIntegration: 'rewriteframes',
21-
sessionTimingIntegration: 'sessiontiming',
2221
browserProfilingIntegration: 'browserprofiling',
2322
moduleMetadataIntegration: 'modulemetadata',
2423
} as const;

packages/bun/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ export {
150150
dedupeIntegration,
151151
extraErrorDataIntegration,
152152
rewriteFramesIntegration,
153-
// eslint-disable-next-line deprecation/deprecation
154-
sessionTimingIntegration,
155153
} from '@sentry/core';
156154

157155
export type { BunOptions } from './types';

packages/core/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ export { captureConsoleIntegration } from './integrations/captureconsole';
9999
export { dedupeIntegration } from './integrations/dedupe';
100100
export { extraErrorDataIntegration } from './integrations/extraerrordata';
101101
export { rewriteFramesIntegration } from './integrations/rewriteframes';
102-
// eslint-disable-next-line deprecation/deprecation
103-
export { sessionTimingIntegration } from './integrations/sessiontiming';
104102
export { zodErrorsIntegration } from './integrations/zoderrors';
105103
export { thirdPartyErrorFilterIntegration } from './integrations/third-party-errors-filter';
106104
// eslint-disable-next-line deprecation/deprecation

packages/core/src/integrations/sessiontiming.ts

-35
This file was deleted.

packages/core/test/lib/integrations/sessiontiming.test.ts

-24
This file was deleted.

packages/deno/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,6 @@ export {
7474
dedupeIntegration,
7575
extraErrorDataIntegration,
7676
rewriteFramesIntegration,
77-
// eslint-disable-next-line deprecation/deprecation
78-
sessionTimingIntegration,
7977
zodErrorsIntegration,
8078
SEMANTIC_ATTRIBUTE_SENTRY_OP,
8179
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,

packages/google-cloud-serverless/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,6 @@ export {
128128
dedupeIntegration,
129129
extraErrorDataIntegration,
130130
rewriteFramesIntegration,
131-
// eslint-disable-next-line deprecation/deprecation
132-
sessionTimingIntegration,
133131
} from '@sentry/core';
134132

135133
export { getDefaultIntegrations, init } from './sdk';

packages/node/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,6 @@ export {
118118
extraErrorDataIntegration,
119119
rewriteFramesIntegration,
120120
// eslint-disable-next-line deprecation/deprecation
121-
sessionTimingIntegration,
122-
// eslint-disable-next-line deprecation/deprecation
123121
metricsDefault as metrics,
124122
startSession,
125123
captureSession,

packages/remix/src/index.server.ts

-2
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ export {
101101
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
102102
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
103103
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
104-
// eslint-disable-next-line deprecation/deprecation
105-
sessionTimingIntegration,
106104
setContext,
107105
setCurrentClient,
108106
setExtra,

packages/solidstart/src/server/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ export {
9393
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
9494
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
9595
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
96-
// eslint-disable-next-line deprecation/deprecation
97-
sessionTimingIntegration,
9896
setContext,
9997
setCurrentClient,
10098
setExtra,

packages/sveltekit/src/server/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ export {
9595
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
9696
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
9797
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
98-
// eslint-disable-next-line deprecation/deprecation
99-
sessionTimingIntegration,
10098
setContext,
10199
setCurrentClient,
102100
setExtra,

0 commit comments

Comments
 (0)