diff --git a/MIGRATION.md b/MIGRATION.md index 1d36b7060abe..a3a169d778b4 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -969,10 +969,6 @@ instead now. Instead, you can get the currently active span via `Sentry.getActiveSpan()`. Setting a span on the scope happens automatically when you use the new performance APIs `startSpan()` and `startSpanManual()`. -## Deprecate `scope.setTransactionName()` - -Instead, either set this as attributes or tags, or use an event processor to set `event.transaction`. - ## Deprecate `scope.getTransaction()` and `getActiveTransaction()` Instead, you should not rely on the active transaction, but just use `startSpan()` APIs, which handle this for you. diff --git a/packages/core/src/scope.ts b/packages/core/src/scope.ts index 96ab7080e8c6..ee66092d89a0 100644 --- a/packages/core/src/scope.ts +++ b/packages/core/src/scope.ts @@ -279,7 +279,6 @@ export class Scope implements ScopeInterface { /** * Sets the transaction name on the scope for future events. - * @deprecated Use extra or tags instead. */ public setTransactionName(name?: string): this { this._transactionName = name; diff --git a/packages/types/src/scope.ts b/packages/types/src/scope.ts index c5a5daa25241..3a3abbee0ac6 100644 --- a/packages/types/src/scope.ts +++ b/packages/types/src/scope.ts @@ -128,7 +128,6 @@ export interface Scope { /** * Sets the transaction name on the scope for future events. - * @deprecated Use extra or tags instead. */ setTransactionName(name?: string): this;