We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 781c3a9 commit a9621fcCopy full SHA for a9621fc
packages/core/src/hub.ts
@@ -385,7 +385,17 @@ export class Hub implements HubInterface {
385
* @inheritDoc
386
*/
387
public startTransaction(context: TransactionContext, customSamplingContext?: CustomSamplingContext): Transaction {
388
- return this._callExtensionMethod('startTransaction', context, customSamplingContext);
+ 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;
399
}
400
401
/**
0 commit comments