Skip to content

Commit c512ad3

Browse files
committed
feat(js): Re-org js integrations and add missing node integrations
1 parent aaa0882 commit c512ad3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1254
-687
lines changed

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ supported:
2626

2727
<Alert level="info">
2828

29-
This integration only works inside server environments (Node.js, Bun, Deno). Requires SDK version `8.32.0` or higher.
29+
This integration only works in the Node.js and Bun runtimes. Requires SDK version `8.32.0` or higher.
3030

3131
</Alert>
3232

@@ -35,3 +35,14 @@ _Import name: `Sentry.amqplibIntegration`_
3535
This integration is enabled by default when performance monitoring is enabled. If you'd like to modify your default integrations, read [this](./../#modifying-default-integrations).
3636

3737
The `amqplibIntegration` adds instrumentation for the `amqplib` library to capture spans using [`@opentelemetry/instrumentation-amqplib`](https://www.npmjs.com/package/@opentelemetry/instrumentation-amqplib).
38+
39+
```JavaScript
40+
Sentry.init({
41+
dsn: "___PUBLIC_DSN___",
42+
integrations: [new Sentry.amqplibIntegration()],
43+
});
44+
```
45+
46+
## Supported Versions
47+
48+
- `amqplib`: `>=0.5.5 <1`

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,10 @@ This integration only works in the Node.js runtime.
3030
_Import name: `Sentry.anrIntegration`_
3131

3232
The `anrIntegration` captures Application Not Responding (ANR)/Event Loop Stall errors and reports them as Sentry events. For more details, see the documentation on [ANR](../../application-not-responding).
33+
34+
```JavaScript
35+
Sentry.init({
36+
dsn: "___PUBLIC_DSN___",
37+
integrations: [Sentry.anrIntegration({ captureStackTrace: true })],
38+
});
39+
```

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ _Import name: `Sentry.awsIntegration`_
1010
This integration is enabled by default. If you'd like to modify your default integrations, read [this](./../#modifying-default-integrations).
1111

1212
Adds instrumentation for aws-sdk v2 and v3 to automatically create spans. Powered by [`@opentelemetry/instrumentation-aws-sdk`](https://www.npmjs.com/package/@opentelemetry/instrumentation-aws-sdk).
13+
14+
```JavaScript
15+
import * as Sentry from '@sentry/aws-serverless';
16+
17+
Sentry.init({
18+
dsn: "___PUBLIC_DSN___",
19+
integrations: [Sentry.awsIntegration()],
20+
});
21+
```

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,12 @@ _Import name: `Sentry.awsLambdaIntegration`_
1010
This integration is enabled by default. If you'd like to modify your default integrations, read [this](./../#modifying-default-integrations).
1111

1212
Adds instrumentation for AWS Lambda to automatically create spans. Powered by [`@opentelemetry/instrumentation-aws-lambda`](https://www.npmjs.com/package/@opentelemetry/instrumentation-aws-lambda).
13+
14+
```JavaScript
15+
import * as Sentry from '@sentry/aws-serverless';
16+
17+
Sentry.init({
18+
dsn: "___PUBLIC_DSN___",
19+
integrations: [Sentry.awsIntegration()],
20+
});
21+
```

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ By default, the Sentry SDK wraps the `console`, `dom`, `fetch`, `history`, and `
3434

3535
```JavaScript
3636
Sentry.init({
37+
dsn: "___PUBLIC_DSN___",
3738
integrations: [
3839
Sentry.breadcrumbsIntegration({
3940
console: true,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ This integration wraps native time and event APIs (`setTimeout`, `setInterval`,
3232

3333
```JavaScript
3434
Sentry.init({
35+
dsn: "___PUBLIC_DSN___",
3536
integrations: [
3637
Sentry.browserApiErrorsIntegration({
3738
setTimeout: true,

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,10 @@ _Import name: `Sentry.browserProfilingIntegration`_
3131
The BrowserProfiling integration sets up automatic performance profiling for your frontend applications. It captures profiles via the [JS Self-Profiling API](https://wicg.github.io/js-self-profiling/) from the browser and sends them to Sentry. To use this integration, you also need to have the [BrowserTracing integration](../browsertracing) enabled.
3232

3333
Read more about [setting up BrowserProfiling](./../../../profiling/).
34+
35+
```JavaScript
36+
Sentry.init({
37+
dsn: "___PUBLIC_DSN___",
38+
integrations: [new Sentry.browserProfilingIntegration()],
39+
});
40+
```

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,9 @@ With [tracing](/product/performance/), Sentry tracks your software performance,
3131
The BrowserTracing integration sets up automatic tracing for your frontend applications. It captures transactions and spans from the browser and sends them to Sentry.
3232

3333
Read more about [setting up BrowserTracing](./../../../tracing/).
34+
35+
```JavaScript
36+
Sentry.init({
37+
integrations: [new Sentry.browserTracingIntegration()],
38+
});
39+
```

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,11 @@ _Import name: `Sentry.bunServerIntegration`_
1616
This integration is enabled by default. If you'd like to modify your default integrations, read [this](./../#modifying-default-integrations).
1717

1818
The `bunServerIntegration` instruments [`Bun.serve` API](https://bun.sh/docs/api/http) to automatically create transactions and capture errors.
19+
20+
```JavaScript
21+
import * as Sentry from '@sentry/bun';
22+
23+
Sentry.init({
24+
integrations: [new Sentry.bunServerIntegration()],
25+
});
26+
```

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ The `connectIntegration` adds instrumentation for the Hapi framework to capture
2222

2323
## Supported Versions
2424

25-
- Connect `^3.0.0`
25+
- `connect`: `^3.0.0`

0 commit comments

Comments
 (0)