Skip to content

Commit 3abbeae

Browse files
authored
feat(core): Undeprecate setTransactionName (#10966)
This was backported to v7 as part of #10964
1 parent 8dfa7c2 commit 3abbeae

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

MIGRATION.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -969,10 +969,6 @@ instead now.
969969
Instead, you can get the currently active span via `Sentry.getActiveSpan()`. Setting a span on the scope happens
970970
automatically when you use the new performance APIs `startSpan()` and `startSpanManual()`.
971971

972-
## Deprecate `scope.setTransactionName()`
973-
974-
Instead, either set this as attributes or tags, or use an event processor to set `event.transaction`.
975-
976972
## Deprecate `scope.getTransaction()` and `getActiveTransaction()`
977973

978974
Instead, you should not rely on the active transaction, but just use `startSpan()` APIs, which handle this for you.

packages/core/src/scope.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,6 @@ export class Scope implements ScopeInterface {
279279

280280
/**
281281
* Sets the transaction name on the scope for future events.
282-
* @deprecated Use extra or tags instead.
283282
*/
284283
public setTransactionName(name?: string): this {
285284
this._transactionName = name;

packages/types/src/scope.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ export interface Scope {
128128

129129
/**
130130
* Sets the transaction name on the scope for future events.
131-
* @deprecated Use extra or tags instead.
132131
*/
133132
setTransactionName(name?: string): this;
134133

0 commit comments

Comments
 (0)