Skip to content

Commit 6243b67

Browse files
committed
fixes
1 parent 21ba125 commit 6243b67

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

packages/core/src/tracing/transaction.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -91,30 +91,6 @@ export class Transaction extends SentrySpan implements TransactionInterface {
9191
return this._hub.captureEvent(transaction);
9292
}
9393

94-
/**
95-
* @inheritDoc
96-
*/
97-
public toContext(): TransactionArguments {
98-
// eslint-disable-next-line deprecation/deprecation
99-
const spanContext = super.toContext();
100-
101-
return dropUndefinedKeys({
102-
...spanContext,
103-
name: this._name,
104-
trimEnd: this._trimEnd,
105-
});
106-
}
107-
108-
/**
109-
* Override the current hub with a new one.
110-
* Used if you want another hub to finish the transaction.
111-
*
112-
* @internal
113-
*/
114-
public setHub(hub: Hub): void {
115-
this._hub = hub;
116-
}
117-
11894
/**
11995
* Finish the transaction & prepare the event to send to Sentry.
12096
*/

packages/types/src/transaction.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,6 @@ export interface Transaction extends Omit<TransactionArguments, 'name' | 'op' |
6363
*/
6464
setMeasurement(name: string, value: number, unit: MeasurementUnit): void;
6565

66-
/**
67-
* Set metadata for this transaction.
68-
* @deprecated Use attributes or store data on the scope instead.
69-
*/
70-
setMetadata(newMetadata: Partial<TransactionMetadata>): void;
71-
7266
/**
7367
* Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.
7468
* Also the `sampled` decision will be inherited.

0 commit comments

Comments
 (0)