@@ -41,8 +41,7 @@ export function captureException(
41
41
exception : any ,
42
42
hint ?: ExclusiveEventHintOrCaptureContext ,
43
43
) : string {
44
- // eslint-disable-next-line deprecation/deprecation
45
- return getCurrentHub ( ) . captureException ( exception , parseEventHintOrCaptureContext ( hint ) ) ;
44
+ return getCurrentScope ( ) . captureException ( exception , parseEventHintOrCaptureContext ( hint ) ) ;
46
45
}
47
46
48
47
/**
@@ -57,8 +56,7 @@ export function captureMessage(message: string, captureContext?: CaptureContext
57
56
// arity of the `captureMessage(message, level)` method.
58
57
const level = typeof captureContext === 'string' ? captureContext : undefined ;
59
58
const context = typeof captureContext !== 'string' ? { captureContext } : undefined ;
60
- // eslint-disable-next-line deprecation/deprecation
61
- return getCurrentHub ( ) . captureMessage ( message , level , context ) ;
59
+ return getCurrentScope ( ) . captureMessage ( message , level , context ) ;
62
60
}
63
61
64
62
/**
@@ -69,8 +67,7 @@ export function captureMessage(message: string, captureContext?: CaptureContext
69
67
* @returns the id of the captured event.
70
68
*/
71
69
export function captureEvent ( event : Event , hint ?: EventHint ) : string {
72
- // eslint-disable-next-line deprecation/deprecation
73
- return getCurrentHub ( ) . captureEvent ( event , hint ) ;
70
+ return getCurrentScope ( ) . captureEvent ( event , hint ) ;
74
71
}
75
72
76
73
/**
0 commit comments