Skip to content

Commit

Permalink
ref: Use default breadcrumbs integration
Browse files Browse the repository at this point in the history
  • Loading branch information
HazAT committed Feb 21, 2020
1 parent 0d7f5b0 commit 4edcdac
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/js/sdk.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
defaultIntegrations,
getCurrentHub,
Integrations
} from "@sentry/browser";
import { defaultIntegrations, getCurrentHub } from "@sentry/browser";
import { initAndBind, setExtra } from "@sentry/core";
import { RewriteFrames } from "@sentry/integrations";
import { StackFrame } from "@sentry/types";
Expand All @@ -22,7 +18,6 @@ import {

const IGNORED_DEFAULT_INTEGRATIONS = [
"GlobalHandlers", // We will use the react-native internal handlers
"Breadcrumbs", // We add it later, just not patching fetch
"TryCatch" // We don't need this
];

Expand All @@ -42,8 +37,7 @@ export function init(
new Release(),
...defaultIntegrations.filter(
i => !IGNORED_DEFAULT_INTEGRATIONS.includes(i.name)
),
new Integrations.Breadcrumbs()
)
];
if (__DEV__) {
options.defaultIntegrations.push(new DebugSymbolicator());
Expand Down

0 comments on commit 4edcdac

Please sign in to comment.