Skip to content
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
5 changes: 5 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ npx @sentry/migr8@latest
This will let you select which updates to run, and automatically update your code. Make sure to still review all code
changes!

## Deprecated `Transaction` integration

This pluggable integration from `@sentry/integrations` will be removed in v8. It was already undocumented and is not
necessary for the SDK to work as expected.

## Changed integration interface

In v8, integrations passed to a client will have an optional `setupOnce()` hook. Currently, this hook is always present,
Expand Down
1 change: 1 addition & 0 deletions packages/integrations/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export { Offline } from './offline';
export { ReportingObserver } from './reportingobserver';
export { RewriteFrames } from './rewriteframes';
export { SessionTiming } from './sessiontiming';
// eslint-disable-next-line deprecation/deprecation
export { Transaction } from './transaction';
export { HttpClient } from './httpclient';
export { ContextLines } from './contextlines';
5 changes: 4 additions & 1 deletion packages/integrations/src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ const transactionIntegration = (() => {
};
}) satisfies IntegrationFn;

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

Expand Down
1 change: 1 addition & 0 deletions packages/integrations/test/transaction.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Transaction } from '../src/transaction';

// eslint-disable-next-line deprecation/deprecation
const transaction = new Transaction();

describe('Transaction', () => {
Expand Down