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 {
153
153
return span ;
154
154
}
155
155
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
-
169
156
/**
170
157
* Continues a trace from a string (usually the header).
171
158
* @param traceparent Traceparent string
Original file line number Diff line number Diff line change @@ -219,8 +219,7 @@ export class Scope implements ScopeInterface {
219
219
}
220
220
221
221
/**
222
- * Internal getter for Span, used in Hub.
223
- * @hidden
222
+ * @inheritDoc
224
223
*/
225
224
public getSpan ( ) : Span | undefined {
226
225
return this . _span ;
You can’t perform that action at this time.
0 commit comments