From ac6a5a7a61eaa9eba1a1466230324d092e19bd0e Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Thu, 7 Mar 2024 11:56:12 -0500 Subject: [PATCH] feat(core): Undeprecate setTransactionName --- MIGRATION.md | 4 ---- packages/core/src/scope.ts | 1 - packages/types/src/scope.ts | 1 - 3 files changed, 6 deletions(-) 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;