File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -55,9 +55,6 @@ export class IdleTransaction extends Transaction {
55
55
// Activities store a list of active spans
56
56
public activities : Record < string , boolean > = { } ;
57
57
58
- // Stores reference to the timeout that calls _beat().
59
- private _heartbeatTimer : number = 0 ;
60
-
61
58
// Track state of activities in previous heartbeat
62
59
private _prevHeartbeatString : string | undefined ;
63
60
@@ -236,7 +233,6 @@ export class IdleTransaction extends Transaction {
236
233
* If this occurs we finish the transaction.
237
234
*/
238
235
private _beat ( ) : void {
239
- clearTimeout ( this . _heartbeatTimer ) ;
240
236
// We should not be running heartbeat if the idle transaction is finished.
241
237
if ( this . _finished ) {
242
238
return ;
@@ -267,9 +263,9 @@ export class IdleTransaction extends Transaction {
267
263
*/
268
264
private _pingHeartbeat ( ) : void {
269
265
logger . log ( `pinging Heartbeat -> current counter: ${ this . _heartbeatCounter } ` ) ;
270
- this . _heartbeatTimer = ( setTimeout ( ( ) => {
266
+ setTimeout ( ( ) => {
271
267
this . _beat ( ) ;
272
- } , 5000 ) as unknown ) as number ;
268
+ } , 5000 ) ;
273
269
}
274
270
}
275
271
You can’t perform that action at this time.
0 commit comments