Skip to content

Commit a22ba2b

Browse files
authored
docs(integrations): Match snippet with text (#15874)
## DESCRIBE YOUR PR Fix snippet to match the text to disable console call capturing (same snippet as in `react-native` docs).
1 parent 442acc8 commit a22ba2b

File tree

2 files changed

+4
-6
lines changed
  • docs/platforms

2 files changed

+4
-6
lines changed

docs/platforms/javascript/common/configuration/integrations/index.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ To disable system integrations, set `defaultIntegrations: false` when calling `i
2020

2121
To override their settings, provide a new instance with your config to the `integrations` option. For example, to turn off browser capturing console calls:
2222

23-
```javascript
23+
```javascript {3-7}
2424
Sentry.init({
2525
dsn: "___PUBLIC_DSN___",
26-
2726
integrations: [
28-
Sentry.linkedErrorsIntegration({
29-
limit: 7,
27+
Sentry.breadcrumbsIntegration({
28+
console: false,
3029
}),
3130
],
3231
});

docs/platforms/react-native/integrations/default.mdx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,9 @@ To disable system integrations, set `defaultIntegrations: false` when calling `i
122122
To override their settings, provide a new instance with your config to the `integrations` option. For example, to turn off browser capturing console calls:
123123

124124

125-
```javascript
125+
```javascript {3-7}
126126
Sentry.init({
127127
dsn: "___PUBLIC_DSN___",
128-
129128
integrations: [
130129
Sentry.breadcrumbsIntegration({
131130
console: false,

0 commit comments

Comments
 (0)