Skip to content

Commit 6779197

Browse files
committed
ref: CR
1 parent 2d7ccba commit 6779197

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

packages/apm/src/span.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -153,19 +153,6 @@ export class Span implements SpanInterface, SpanContext {
153153
return span;
154154
}
155155

156-
/**
157-
* @inheritDoc
158-
*/
159-
public getTransaction(callback: (transaction: Transaction) => void): void {
160-
const recorder = this.spanRecorder;
161-
if (!recorder || !recorder.spans[0]) {
162-
logger.warn('This Span has no reference to a Transaction. Returning an instance to itself.');
163-
logger.warn('It means that the Transaction has been sampled or the Span did not originate from a Transaction.');
164-
return;
165-
}
166-
callback(recorder.spans[0] as Transaction);
167-
}
168-
169156
/**
170157
* Continues a trace from a string (usually the header).
171158
* @param traceparent Traceparent string

packages/hub/src/scope.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ export class Scope implements ScopeInterface {
219219
}
220220

221221
/**
222-
* Internal getter for Span, used in Hub.
223-
* @hidden
222+
* @inheritDoc
224223
*/
225224
public getSpan(): Span | undefined {
226225
return this._span;

0 commit comments

Comments
 (0)