diff --git a/src/SentryLink.ts b/src/SentryLink.ts index 6ef7b9d..e81c31d 100644 --- a/src/SentryLink.ts +++ b/src/SentryLink.ts @@ -180,6 +180,8 @@ export class SentryLink extends ApolloLink { * @param {OperationsBreadcrumb} breadcrumb */ attachBreadcrumbToSentry = (breadcrumb: OperationsBreadcrumb): void => { + if (this.options.breadcrumb?.enable === false) return; + if (breadcrumb.flushed) { console.warn('[apollo-link-sentry] SentryLink.attachBreadcrumbToSentry() was called on an already flushed breadcrumb'); return;