File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,17 @@ export class Hub implements HubInterface {
385385 * @inheritDoc
386386 */
387387 public startTransaction ( context : TransactionContext , customSamplingContext ?: CustomSamplingContext ) : Transaction {
388- return this . _callExtensionMethod ( 'startTransaction' , context , customSamplingContext ) ;
388+ const result = this . _callExtensionMethod < Transaction > ( 'startTransaction' , context , customSamplingContext ) ;
389+
390+ if ( __DEBUG_BUILD__ && ! result ) {
391+ // eslint-disable-next-line no-console
392+ console . warn ( `Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
393+ Sentry.addTracingExtensions();
394+ Sentry.init({...});
395+ ` ) ;
396+ }
397+
398+ return result ;
389399 }
390400
391401 /**
You can’t perform that action at this time.
0 commit comments