Skip to content

Commit b79de89

Browse files
committed
feat(core)!: Remove sessionTimingIntegration
1 parent 2092c37 commit b79de89

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
## 5. Build Changes
100101

packages/astro/src/index.server.ts

-2
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ export {
105105
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
106106
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
107107
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
108-
// eslint-disable-next-line deprecation/deprecation
109-
sessionTimingIntegration,
110108
setContext,
111109
setCurrentClient,
112110
setExtra,

packages/aws-serverless/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ export {
132132
dedupeIntegration,
133133
extraErrorDataIntegration,
134134
rewriteFramesIntegration,
135-
// eslint-disable-next-line deprecation/deprecation
136-
sessionTimingIntegration,
137135
} from '@sentry/core';
138136

139137
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
@@ -154,8 +154,6 @@ export {
154154
dedupeIntegration,
155155
extraErrorDataIntegration,
156156
rewriteFramesIntegration,
157-
// eslint-disable-next-line deprecation/deprecation
158-
sessionTimingIntegration,
159157
} from '@sentry/core';
160158

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

packages/core/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ export { captureConsoleIntegration } from './integrations/captureconsole';
9898
export { dedupeIntegration } from './integrations/dedupe';
9999
export { extraErrorDataIntegration } from './integrations/extraerrordata';
100100
export { rewriteFramesIntegration } from './integrations/rewriteframes';
101-
// eslint-disable-next-line deprecation/deprecation
102-
export { sessionTimingIntegration } from './integrations/sessiontiming';
103101
export { zodErrorsIntegration } from './integrations/zoderrors';
104102
export { thirdPartyErrorFilterIntegration } from './integrations/third-party-errors-filter';
105103
// 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
@@ -132,8 +132,6 @@ export {
132132
dedupeIntegration,
133133
extraErrorDataIntegration,
134134
rewriteFramesIntegration,
135-
// eslint-disable-next-line deprecation/deprecation
136-
sessionTimingIntegration,
137135
} from '@sentry/core';
138136

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

packages/node/src/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ export {
120120
extraErrorDataIntegration,
121121
rewriteFramesIntegration,
122122
// eslint-disable-next-line deprecation/deprecation
123-
sessionTimingIntegration,
124-
// eslint-disable-next-line deprecation/deprecation
125123
metricsDefault as metrics,
126124
startSession,
127125
captureSession,

packages/remix/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/solidstart/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,

packages/sveltekit/src/server/index.ts

-2
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,6 @@ export {
9797
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,
9898
SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,
9999
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,
100-
// eslint-disable-next-line deprecation/deprecation
101-
sessionTimingIntegration,
102100
setContext,
103101
setCurrentClient,
104102
setExtra,

0 commit comments

Comments
 (0)