Skip to content

Commit 0cff277

Browse files
authored
Move plugin content back to platform-specific pages.
1 parent a94f8fd commit 0cff277

File tree

10 files changed

+553
-522
lines changed

10 files changed

+553
-522
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```javascript {tabTitle: JavaScript}
2+
import * as Sentry from "@sentry/node";
3+
import { CaptureConsole as CaptureConsoleIntegration } from "@sentry/integrations";
4+
5+
Sentry.init({
6+
dsn: "___PUBLIC_DSN___",
7+
integrations: [new CaptureConsoleIntegration(
8+
{
9+
// array of methods that should be captured
10+
// defaults to ['log', 'info', 'warn', 'error', 'debug', 'assert']
11+
levels: string[];
12+
}
13+
)],
14+
});
15+
```
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
```javascript {tabTitle: JavaScript}
2+
import * as Sentry from "@sentry/browser";
3+
import { ReportingObserver as ReportingObserverIntegration } from "@sentry/integrations";
4+
5+
Sentry.init({
6+
dsn: "___PUBLIC_DSN___",
7+
integrations: [new ReportingObserverIntegration()],
8+
});
9+
```
10+
11+
```javascript {tabTitle: CDN}
12+
<script
13+
src="https://browser.sentry-cdn.com/{{ packages.version('sentry.javascript.browser') }}/bundle.min.js"
14+
integrity="sha384-{{ packages.checksum('sentry.javascript.browser', 'bundle.min.js', 'sha384-base64') }}"
15+
crossorigin="anonymous"
16+
></script>
17+
18+
<script
19+
src="https://browser.sentry-cdn.com/{{ packages.version('sentry.javascript.browser') }}/reportingobserver.min.js"
20+
integrity="sha384-{{ packages.checksum('sentry.javascript.browser', 'reportingobserver.min.js', 'sha384-base64') }}"
21+
crossorigin="anonymous"
22+
></script>
23+
24+
Sentry.init({
25+
dsn: "___PUBLIC_DSN___",
26+
integrations: [new Sentry.Integrations.ReportingObserver()],
27+
});
28+
```

src/platform-includes/configuration/integrations/default-integrations/javascript.mdx

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)