File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments