Skip to content

Commit a2fbf8c

Browse files
committed
feat(v8): Remove @sentry/tracing
1 parent 4678aac commit a2fbf8c

File tree

104 files changed

+435
-3180
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+435
-3180
lines changed

.craft.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,7 @@ targets:
131131
id: '@sentry-internal/eslint-config-sdk'
132132
includeNames: /^sentry-internal-eslint-config-sdk-\d.*\.tgz$/
133133

134-
## 8. Deprecated packages we still release (but no packages depend on them anymore)
135-
- name: npm
136-
id: '@sentry/tracing'
137-
includeNames: /^sentry-tracing-\d.*\.tgz$/
138-
139-
## 9. Experimental packages
134+
## 8. Experimental packages
140135
- name: npm
141136
id: '@sentry/node-experimental'
142137
includeNames: /^sentry-node-experimental-\d.*\.tgz$/

MIGRATION.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ to access and mutate the current scope.
4545

4646
## Deletion of `@sentry/hub` package (#10530)
4747

48-
`@sentry/hub` has been removed. All exports from `@sentry.hub` should be available in `@sentry/core`.
48+
`@sentry/hub` has been removed. All exports from `@sentry/tracing` should be available in `@sentry/core` or in
49+
`@sentry/browser` and `@sentry/node`.
50+
51+
## Deletion of `@sentry/tracing` package
52+
53+
`@sentry/tracing` has been removed. All exports from `@sentry/tracing` should be available in `@sentry/core` or in
54+
`@sentry/browser` and `@sentry/node`.
4955

5056
## General API Changes
5157

dev-packages/browser-integration-tests/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
"@playwright/test": "^1.40.1",
4949
"@sentry-internal/rrweb": "2.11.0",
5050
"@sentry/browser": "7.100.0",
51-
"@sentry/tracing": "7.100.0",
5251
"axios": "1.6.0",
5352
"babel-loader": "^8.2.2",
5453
"html-webpack-plugin": "^5.5.0",

dev-packages/browser-integration-tests/suites/public-api/startSpan/init.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/* eslint-disable no-unused-vars */
21
import * as Sentry from '@sentry/browser';
3-
// biome-ignore lint/nursery/noUnusedImports: Need to import tracing for side effect
4-
import * as _ from '@sentry/tracing';
2+
3+
Sentry.addTracingExtensions();
54

65
window.Sentry = Sentry;
76

dev-packages/browser-integration-tests/suites/public-api/startTransaction/init.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/* eslint-disable no-unused-vars */
21
import * as Sentry from '@sentry/browser';
3-
// biome-ignore lint/nursery/noUnusedImports: Need to import tracing for side effect
4-
import * as _ from '@sentry/tracing';
2+
3+
Sentry.addTracingExtensions();
54

65
window.Sentry = Sentry;
76

dev-packages/browser-integration-tests/suites/replay/dsc/init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54
window.Replay = new Sentry.Replay({
@@ -11,7 +10,7 @@ window.Replay = new Sentry.Replay({
1110

1211
Sentry.init({
1312
dsn: 'https://[email protected]/1337',
14-
integrations: [new Integrations.BrowserTracing({ tracingOrigins: [/.*/] }), window.Replay],
13+
integrations: [new Sentry.BrowserTracing({ tracingOrigins: [/.*/] }), window.Replay],
1514
environment: 'production',
1615
tracesSampleRate: 1,
1716
// Needs manual start!

dev-packages/browser-integration-tests/suites/tracing/browserTracingIntegrationShim/init.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ window.Sentry = Sentry;
55
Sentry.init({
66
dsn: 'https://[email protected]/1337',
77
sampleRate: 1,
8-
integrations: [new Sentry.browserTracingIntegration()],
8+
integrations: [Sentry.browserTracingIntegration()],
99
});
1010

1111
// This should not fail
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing({ idleTimeout: 9000 })],
7+
integrations: [new Sentry.BrowserTracing({ idleTimeout: 9000 })],
98
tracesSampleRate: 1,
109
});

dev-packages/browser-integration-tests/suites/tracing/browsertracing/http-timings/init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
87
integrations: [
9-
new Integrations.BrowserTracing({
8+
new Sentry.BrowserTracing({
109
idleTimeout: 1000,
1110
_experiments: {
1211
enableHTTPTimings: true,
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing()],
7+
integrations: [new Sentry.BrowserTracing()],
98
tracesSampleRate: 1,
109
});

dev-packages/browser-integration-tests/suites/tracing/browsertracing/interactions/init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
87
integrations: [
9-
new Integrations.BrowserTracing({
8+
new Sentry.BrowserTracing({
109
idleTimeout: 1000,
1110
_experiments: {
1211
enableInteractions: true,
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing({ enableLongTask: false, idleTimeout: 9000 })],
7+
integrations: [new Sentry.BrowserTracing({ enableLongTask: false, idleTimeout: 9000 })],
98
tracesSampleRate: 1,
109
});

dev-packages/browser-integration-tests/suites/tracing/browsertracing/long-tasks-enabled/init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
87
integrations: [
9-
new Integrations.BrowserTracing({
8+
new Sentry.BrowserTracing({
109
idleTimeout: 9000,
1110
}),
1211
],
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing()],
7+
integrations: [new Sentry.BrowserTracing()],
98
tracesSampleRate: 1,
109
environment: 'staging',
1110
});
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54
window._testBaseTimestamp = performance.timeOrigin / 1000;
65

76
Sentry.init({
87
dsn: 'https://[email protected]/1337',
9-
integrations: [new Integrations.BrowserTracing()],
8+
integrations: [new Sentry.BrowserTracing()],
109
tracesSampleRate: 1,
1110
});
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54
window._testBaseTimestamp = performance.timeOrigin / 1000;
@@ -8,7 +7,7 @@ setTimeout(() => {
87
window._testTimeoutTimestamp = (performance.timeOrigin + performance.now()) / 1000;
98
Sentry.init({
109
dsn: 'https://[email protected]/1337',
11-
integrations: [new Integrations.BrowserTracing()],
10+
integrations: [new Sentry.BrowserTracing()],
1211
tracesSampleRate: 1,
1312
});
1413
}, 250);

dev-packages/browser-integration-tests/suites/tracing/browsertracing/pageloadWithHeartbeatTimeout/init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import * as Sentry from '@sentry/browser';
22
import { startSpanManual } from '@sentry/browser';
3-
import { Integrations } from '@sentry/tracing';
43

54
window.Sentry = Sentry;
65

76
Sentry.init({
87
dsn: 'https://[email protected]/1337',
9-
integrations: [new Integrations.BrowserTracing()],
8+
integrations: [new Sentry.BrowserTracing()],
109
tracesSampleRate: 1,
1110
});
1211

Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing({ tracePropagationTargets: ['http://example.com'] })],
7+
integrations: [new Sentry.BrowserTracing({ tracePropagationTargets: ['http://example.com'] })],
98
tracesSampleRate: 1,
109
});
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [
9-
new Integrations.BrowserTracing({ tracePropagationTargets: [], tracingOrigins: ['http://example.com'] }),
10-
],
7+
integrations: [new Sentry.BrowserTracing({ tracePropagationTargets: [], tracingOrigins: ['http://example.com'] })],
118
tracesSampleRate: 1,
129
});
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing({ tracingOrigins: ['http://example.com'] })],
7+
integrations: [new Sentry.BrowserTracing({ tracingOrigins: ['http://example.com'] })],
98
tracesSampleRate: 1,
109
});
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing()],
7+
integrations: [new Sentry.BrowserTracing()],
98
tracesSampleRate: 1,
109
});
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing()],
7+
integrations: [new Sentry.BrowserTracing()],
98
tracesSampleRate: 1,
109
});

dev-packages/browser-integration-tests/suites/tracing/envelope-header-transaction-name/init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing({ tracingOrigins: [/.*/] })],
7+
integrations: [new Sentry.BrowserTracing({ tracingOrigins: [/.*/] })],
98
environment: 'production',
109
tracesSampleRate: 1,
1110
debug: true,

dev-packages/browser-integration-tests/suites/tracing/envelope-header/init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing({ tracingOrigins: [/.*/] })],
7+
integrations: [new Sentry.BrowserTracing({ tracingOrigins: [/.*/] })],
98
environment: 'production',
109
tracesSampleRate: 1,
1110
debug: true,

dev-packages/browser-integration-tests/suites/tracing/metrics/init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
87
integrations: [
9-
new Integrations.BrowserTracing({
8+
new Sentry.BrowserTracing({
109
idleTimeout: 9000,
1110
}),
1211
],

dev-packages/browser-integration-tests/suites/tracing/request/fetch-with-no-active-span/init.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ window.Sentry = Sentry;
55
Sentry.init({
66
dsn: 'https://[email protected]/1337',
77
// disable pageload transaction
8-
integrations: [Sentry.BrowserTracing({ tracingOrigins: ['http://example.com'], startTransactionOnPageLoad: false })],
8+
integrations: [
9+
new Sentry.BrowserTracing({ tracingOrigins: ['http://example.com'], startTransactionOnPageLoad: false }),
10+
],
911
tracesSampleRate: 1,
1012
});
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing({ tracingOrigins: ['http://example.com'] })],
7+
integrations: [new Sentry.BrowserTracing({ tracingOrigins: ['http://example.com'] })],
98
tracesSampleRate: 1,
109
});
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import * as Sentry from '@sentry/browser';
2-
import { Integrations } from '@sentry/tracing';
32

43
window.Sentry = Sentry;
54

65
Sentry.init({
76
dsn: 'https://[email protected]/1337',
8-
integrations: [new Integrations.BrowserTracing({ tracingOrigins: ['http://example.com'] })],
7+
integrations: [new Sentry.BrowserTracing({ tracingOrigins: ['http://example.com'] })],
98
tracesSampleRate: 1,
109
});

dev-packages/browser-integration-tests/suites/tracing/request/xhr-with-no-active-span/init.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ window.Sentry = Sentry;
55
Sentry.init({
66
dsn: 'https://[email protected]/1337',
77
// disable pageload transaction
8-
integrations: [Sentry.BrowserTracing({ tracingOrigins: ['http://example.com'], startTransactionOnPageLoad: false })],
8+
integrations: [
9+
new Sentry.BrowserTracing({ tracingOrigins: ['http://example.com'], startTransactionOnPageLoad: false }),
10+
],
911
tracesSampleRate: 1,
1012
});

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,13 @@ class SentryScenarioGenerationPlugin {
168168
? {
169169
// To help Webpack resolve Sentry modules in `import` statements in cases where they're provided in bundles rather than in `node_modules`
170170
'@sentry/browser': 'Sentry',
171-
'@sentry/tracing': 'Sentry',
172171
'@sentry/replay': 'Sentry',
173172
'@sentry/integrations': 'Sentry',
174173
'@sentry/wasm': 'Sentry',
175174
}
176175
: {};
177176

178-
// Checking if the current scenario has imported `@sentry/tracing` or `@sentry/integrations`.
177+
// Checking if the current scenario has imported `@sentry/integrations`.
179178
compiler.hooks.normalModuleFactory.tap(this._name, factory => {
180179
factory.hooks.parser.for('javascript/auto').tap(this._name, parser => {
181180
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access

dev-packages/e2e-tests/test-applications/create-react-app/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"private": true,
55
"dependencies": {
66
"@sentry/react": "latest || *",
7-
"@sentry/tracing": "latest || *",
87
"@testing-library/jest-dom": "5.14.1",
98
"@testing-library/react": "13.0.0",
109
"@testing-library/user-event": "13.2.1",

dev-packages/e2e-tests/test-applications/create-react-app/src/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/react';
2-
import { BrowserTracing } from '@sentry/tracing';
32
import React from 'react';
43
import ReactDOM from 'react-dom/client';
54
import App from './App';
@@ -9,7 +8,7 @@ import reportWebVitals from './reportWebVitals';
98
Sentry.init({
109
environment: 'qa', // dynamic sampling bias to keep transactions
1110
dsn: 'https://[email protected]/1337',
12-
integrations: [new BrowserTracing()],
11+
integrations: [Sentry.browserTracingIntegration()],
1312

1413
// We recommend adjusting this value in production, or using tracesSampler
1514
// for finer control

0 commit comments

Comments
 (0)