diff --git a/packages/core/src/tracing/sentrySpan.ts b/packages/core/src/tracing/sentrySpan.ts index b837b97285ed..561316705277 100644 --- a/packages/core/src/tracing/sentrySpan.ts +++ b/packages/core/src/tracing/sentrySpan.ts @@ -450,29 +450,6 @@ export class SentrySpan implements SpanInterface { }); } - /** - * @inheritDoc - * - * @deprecated Update the fields directly instead. - */ - public updateWithContext(spanContext: SpanContext): this { - // eslint-disable-next-line deprecation/deprecation - this.data = spanContext.data || {}; - this._name = spanContext.name; - this._endTime = spanContext.endTimestamp; - this._attributes = { ...this._attributes, [SEMANTIC_ATTRIBUTE_SENTRY_OP]: spanContext.op }; - this._parentSpanId = spanContext.parentSpanId; - this._sampled = spanContext.sampled; - this._spanId = spanContext.spanId || this._spanId; - this._startTime = spanContext.startTimestamp || this._startTime; - this._status = spanContext.status; - // eslint-disable-next-line deprecation/deprecation - this.tags = spanContext.tags || {}; - this._traceId = spanContext.traceId || this._traceId; - - return this; - } - /** * @inheritDoc * diff --git a/packages/core/src/tracing/transaction.ts b/packages/core/src/tracing/transaction.ts index d3d0c19718a0..bd4003633b01 100644 --- a/packages/core/src/tracing/transaction.ts +++ b/packages/core/src/tracing/transaction.ts @@ -198,19 +198,6 @@ export class Transaction extends SentrySpan implements TransactionInterface { }); } - /** - * @inheritDoc - */ - public updateWithContext(transactionContext: TransactionContext): this { - // eslint-disable-next-line deprecation/deprecation - super.updateWithContext(transactionContext); - - this._name = transactionContext.name || ''; - this._trimEnd = transactionContext.trimEnd; - - return this; - } - /** * @inheritdoc * diff --git a/packages/types/src/span.ts b/packages/types/src/span.ts index 03a45c6017fc..19954e8db323 100644 --- a/packages/types/src/span.ts +++ b/packages/types/src/span.ts @@ -316,12 +316,6 @@ export interface Span extends Omit, Sp */ toContext(): TransactionContext; - /** - * Updates the current transaction with a new `TransactionContext`. - * @deprecated Update the fields directly instead. - */ - updateWithContext(transactionContext: TransactionContext): this; - /** * Set metadata for this transaction. * @deprecated Use attributes or store data on the scope instead.