@@ -22,7 +22,7 @@ import type {
2222} from '@sentry/types' ;
2323import { GLOBAL_OBJ , consoleSandbox , dateTimestampInSeconds , isThenable , logger , uuid4 } from '@sentry/utils' ;
2424
25- import type { AsyncContextStrategy , Carrier , RunWithAsyncContextOptions } from './asyncContext' ;
25+ import type { AsyncContextStrategy , Carrier } from './asyncContext' ;
2626import { getMainCarrier , getSentryCarrier } from './asyncContext' ;
2727import { DEFAULT_ENVIRONMENT } from './constants' ;
2828import { DEBUG_BUILD } from './debug-build' ;
@@ -661,12 +661,12 @@ export function getCurrentHub(): HubInterface {
661661 * @param options Options to pass to the async context strategy
662662 * @returns The result of the callback
663663 */
664- export function runWithAsyncContext < T > ( callback : ( ) => T , options : RunWithAsyncContextOptions = { } ) : T {
664+ export function runWithAsyncContext < T > ( callback : ( ) => T ) : T {
665665 // Get main carrier (global for every environment)
666666 const carrier = getMainCarrier ( ) ;
667667
668668 const acs = getAsyncContextStrategy ( carrier ) ;
669- return acs . runWithAsyncContext ( callback , options ) ;
669+ return acs . runWithAsyncContext ( callback ) ;
670670}
671671
672672function getGlobalHub ( ) : HubInterface {
@@ -752,7 +752,7 @@ export function getAsyncContextStrategy(carrier: Carrier): AsyncContextStrategy
752752function getHubStackAsyncContextStrategy ( ) : AsyncContextStrategy {
753753 return {
754754 getCurrentHub : getGlobalHub ,
755- runWithAsyncContext : < T > ( callback : ( ) => T , _options : RunWithAsyncContextOptions = { } ) : T => {
755+ runWithAsyncContext : < T > ( callback : ( ) => T ) : T => {
756756 return callback ( ) ;
757757 } ,
758758 } ;
0 commit comments