@@ -241,7 +241,7 @@ describe('createTransport', () => {
241241
242242 await transport . send ( TRANSACTION_ENVELOPE ) ; // Transaction envelope should not be sent because of pending rate limit
243243 expect ( requestExecutor ) . not . toHaveBeenCalled ( ) ;
244- expect ( recordDroppedEventCallback ) . toHaveBeenCalledWith ( 'ratelimit_backoff' , 'transaction' ) ;
244+ expect ( recordDroppedEventCallback ) . toHaveBeenCalledWith ( 'ratelimit_backoff' , 'transaction' , 1 ) ;
245245 expect ( recordDroppedEventCallback ) . toHaveBeenCalledWith ( 'ratelimit_backoff' , 'span' , 1 ) ;
246246 requestExecutor . mockClear ( ) ;
247247 recordDroppedEventCallback . mockClear ( ) ;
@@ -302,7 +302,7 @@ describe('createTransport', () => {
302302
303303 await transport . send ( TRANSACTION_ENVELOPE ) ; // Transaction envelope should not be sent because of pending rate limit
304304 expect ( requestExecutor ) . not . toHaveBeenCalled ( ) ;
305- expect ( recordDroppedEventCallback ) . toHaveBeenCalledWith ( 'ratelimit_backoff' , 'transaction' ) ;
305+ expect ( recordDroppedEventCallback ) . toHaveBeenCalledWith ( 'ratelimit_backoff' , 'transaction' , 1 ) ;
306306 expect ( recordDroppedEventCallback ) . toHaveBeenCalledWith ( 'ratelimit_backoff' , 'span' , 1 ) ;
307307 requestExecutor . mockClear ( ) ;
308308 recordDroppedEventCallback . mockClear ( ) ;
@@ -454,7 +454,7 @@ describe('createTransport', () => {
454454
455455 expect ( mockRecordDroppedEventCallback ) . toHaveBeenCalledTimes ( 3 ) ;
456456 expect ( mockRecordDroppedEventCallback ) . toHaveBeenCalledWith ( 'send_error' , 'error' , 1 ) ;
457- expect ( mockRecordDroppedEventCallback ) . toHaveBeenCalledWith ( 'send_error' , 'transaction' ) ;
457+ expect ( mockRecordDroppedEventCallback ) . toHaveBeenCalledWith ( 'send_error' , 'transaction' , 1 ) ;
458458 expect ( mockRecordDroppedEventCallback ) . toHaveBeenCalledWith ( 'send_error' , 'span' , 3 ) ;
459459 } ) ;
460460
0 commit comments