Skip to content

Commit c1bd3d5

Browse files
authored
feat(integrations): Deprecate Transaction integration (#10178)
This was not really documented anywhere anymore, and it's not clear what/when/why you would be using this, so we will remove this in v8.
1 parent b174d53 commit c1bd3d5

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

MIGRATION.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ npx @sentry/migr8@latest
1010
This will let you select which updates to run, and automatically update your code. Make sure to still review all code
1111
changes!
1212

13+
## Deprecated `Transaction` integration
14+
15+
This pluggable integration from `@sentry/integrations` will be removed in v8. It was already undocumented and is not
16+
necessary for the SDK to work as expected.
17+
1318
## Changed integration interface
1419

1520
In v8, integrations passed to a client will have an optional `setupOnce()` hook. Currently, this hook is always present,

packages/integrations/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export { Offline } from './offline';
77
export { ReportingObserver } from './reportingobserver';
88
export { RewriteFrames } from './rewriteframes';
99
export { SessionTiming } from './sessiontiming';
10+
// eslint-disable-next-line deprecation/deprecation
1011
export { Transaction } from './transaction';
1112
export { HttpClient } from './httpclient';
1213
export { ContextLines } from './contextlines';

packages/integrations/src/transaction.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ const transactionIntegration = (() => {
2626
};
2727
}) satisfies IntegrationFn;
2828

29-
/** Add node transaction to the event */
29+
/**
30+
* Add node transaction to the event.
31+
* @deprecated This integration will be removed in v8.
32+
*/
3033
// eslint-disable-next-line deprecation/deprecation
3134
export const Transaction = convertIntegrationFnToClass(INTEGRATION_NAME, transactionIntegration);
3235

packages/integrations/test/transaction.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Transaction } from '../src/transaction';
22

3+
// eslint-disable-next-line deprecation/deprecation
34
const transaction = new Transaction();
45

56
describe('Transaction', () => {

0 commit comments

Comments
 (0)