11/* eslint-disable max-lines */ 
2- import  {  getClient ,   getCurrentHub  }  from  '@sentry/core' ; 
2+ import  {  addBreadcrumb ,   getClient  }  from  '@sentry/core' ; 
33import  type  { 
44  Event  as  SentryEvent , 
55  HandlerDataConsole , 
@@ -123,7 +123,7 @@ export class Breadcrumbs implements Integration {
123123 * Adds a breadcrumb for Sentry events or transactions if this option is enabled. 
124124 */ 
125125function  addSentryBreadcrumb ( event : SentryEvent ) : void { 
126-   getCurrentHub ( ) . addBreadcrumb ( 
126+   addBreadcrumb ( 
127127    { 
128128      category : `sentry.${ event . type  ===  'transaction'  ? 'transaction'  : 'event' }  , 
129129      event_id : event . event_id , 
@@ -173,7 +173,7 @@ function _domBreadcrumb(dom: BreadcrumbsOptions['dom']): (handlerData: HandlerDa
173173      return ; 
174174    } 
175175
176-     getCurrentHub ( ) . addBreadcrumb ( 
176+     addBreadcrumb ( 
177177      { 
178178        category : `ui.${ handlerData . name }  , 
179179        message : target , 
@@ -213,7 +213,7 @@ function _consoleBreadcrumb(handlerData: HandlerDataConsole): void {
213213    } 
214214  } 
215215
216-   getCurrentHub ( ) . addBreadcrumb ( breadcrumb ,  { 
216+   addBreadcrumb ( breadcrumb ,  { 
217217    input : handlerData . args , 
218218    level : handlerData . level , 
219219  } ) ; 
@@ -247,7 +247,7 @@ function _xhrBreadcrumb(handlerData: HandlerDataXhr): void {
247247    endTimestamp, 
248248  } ; 
249249
250-   getCurrentHub ( ) . addBreadcrumb ( 
250+   addBreadcrumb ( 
251251    { 
252252      category : 'xhr' , 
253253      data, 
@@ -282,7 +282,7 @@ function _fetchBreadcrumb(handlerData: HandlerDataFetch): void {
282282      endTimestamp, 
283283    } ; 
284284
285-     getCurrentHub ( ) . addBreadcrumb ( 
285+     addBreadcrumb ( 
286286      { 
287287        category : 'fetch' , 
288288        data, 
@@ -303,7 +303,7 @@ function _fetchBreadcrumb(handlerData: HandlerDataFetch): void {
303303      startTimestamp, 
304304      endTimestamp, 
305305    } ; 
306-     getCurrentHub ( ) . addBreadcrumb ( 
306+     addBreadcrumb ( 
307307      { 
308308        category : 'fetch' , 
309309        data, 
@@ -338,7 +338,7 @@ function _historyBreadcrumb(handlerData: HandlerDataHistory): void {
338338    from  =  parsedFrom . relative ; 
339339  } 
340340
341-   getCurrentHub ( ) . addBreadcrumb ( { 
341+   addBreadcrumb ( { 
342342    category : 'navigation' , 
343343    data : { 
344344      from, 
0 commit comments