Skip to content

Commit 5097841

Browse files
committed
fixup! fix(cloudflare): Do not add back channel integrations the user removed
1 parent 32cf42b commit 5097841

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,13 @@ Work in this release was contributed by @adityareddy-dev, @jpdefo, @Jxxunnn, @ph
8181
When the `@sentry/cloudflare/vite` plugin bundles an instrumented package (for example `pg` or `openai`), the SDK adds the matching integration with its default options. `@sentry/cloudflare` now exports these integrations, so you can set their options, for example:
8282

8383
```ts
84-
Sentry.withSentry(env => ({
85-
dsn: env.SENTRY_DSN,
86-
integrations: [Sentry.openAIIntegration({ recordInputs: false, recordOutputs: false })],
87-
}), handler);
84+
Sentry.withSentry(
85+
env => ({
86+
dsn: env.SENTRY_DSN,
87+
integrations: [Sentry.openAIIntegration({ recordInputs: false, recordOutputs: false })],
88+
}),
89+
handler,
90+
);
8891
```
8992

9093
These integrations need the vite plugin. Without it, they record nothing, and with `debug: true` the SDK logs a warning.

0 commit comments

Comments
 (0)