File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
packages/browser/src/integrations Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ export class Breadcrumbs implements Integration {
153
153
}
154
154
155
155
// We only capture issued sentry requests
156
- if ( handlerData . xhr . __sentry_own_request__ ) {
156
+ if ( this . _options . sentry && handlerData . xhr . __sentry_own_request__ ) {
157
157
addSentryBreadcrumb ( handlerData . args [ 0 ] ) ;
158
158
}
159
159
}
@@ -169,8 +169,7 @@ export class Breadcrumbs implements Integration {
169
169
170
170
const client = getCurrentHub ( ) . getClient < BrowserClient > ( ) ;
171
171
const dsn = client && client . getDsn ( ) ;
172
-
173
- if ( dsn ) {
172
+ if ( this . _options . sentry && dsn ) {
174
173
const filterUrl = new API ( dsn ) . getStoreEndpoint ( ) ;
175
174
// if Sentry key appears in URL, don't capture it as a request
176
175
// but rather as our own 'sentry' type breadcrumb
You can’t perform that action at this time.
0 commit comments