diff --git a/packages/node/src/integrations/linkederrors.ts b/packages/node/src/integrations/linkederrors.ts index 2817517513db..1b0a6bf12565 100644 --- a/packages/node/src/integrations/linkederrors.ts +++ b/packages/node/src/integrations/linkederrors.ts @@ -47,7 +47,7 @@ export class LinkedErrors implements Integration { const hub = getCurrentHub(); const self = hub.getIntegration(LinkedErrors); const client = hub.getClient(); - if (client && self) { + if (client && self && self._handler && typeof self._handler === 'function') { await self._handler(client.getOptions().stackParser, event, hint); } return event;