@@ -22,7 +22,7 @@ import type {
22
22
} from '@sentry/types' ;
23
23
import { GLOBAL_OBJ , consoleSandbox , dateTimestampInSeconds , isThenable , logger , uuid4 } from '@sentry/utils' ;
24
24
25
- import type { AsyncContextStrategy , Carrier , RunWithAsyncContextOptions } from './asyncContext' ;
25
+ import type { AsyncContextStrategy , Carrier } from './asyncContext' ;
26
26
import { getMainCarrier , getSentryCarrier } from './asyncContext' ;
27
27
import { DEFAULT_ENVIRONMENT } from './constants' ;
28
28
import { DEBUG_BUILD } from './debug-build' ;
@@ -661,12 +661,12 @@ export function getCurrentHub(): HubInterface {
661
661
* @param options Options to pass to the async context strategy
662
662
* @returns The result of the callback
663
663
*/
664
- export function runWithAsyncContext < T > ( callback : ( ) => T , options : RunWithAsyncContextOptions = { } ) : T {
664
+ export function runWithAsyncContext < T > ( callback : ( ) => T ) : T {
665
665
// Get main carrier (global for every environment)
666
666
const carrier = getMainCarrier ( ) ;
667
667
668
668
const acs = getAsyncContextStrategy ( carrier ) ;
669
- return acs . runWithAsyncContext ( callback , options ) ;
669
+ return acs . runWithAsyncContext ( callback ) ;
670
670
}
671
671
672
672
function getGlobalHub ( ) : HubInterface {
@@ -752,7 +752,7 @@ export function getAsyncContextStrategy(carrier: Carrier): AsyncContextStrategy
752
752
function getHubStackAsyncContextStrategy ( ) : AsyncContextStrategy {
753
753
return {
754
754
getCurrentHub : getGlobalHub ,
755
- runWithAsyncContext : < T > ( callback : ( ) => T , _options : RunWithAsyncContextOptions = { } ) : T => {
755
+ runWithAsyncContext : < T > ( callback : ( ) => T ) : T => {
756
756
return callback ( ) ;
757
757
} ,
758
758
} ;
0 commit comments