Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/platforms/javascript/common/agent-tracing/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ As of SDK version `11.0.0`, Sentry auto-instruments the most popular AI SDKs and
]}
/>

<PlatformSection supported={["javascript.cloudflare"]}>
<PlatformSection supported={["javascript.cloudflare", "javascript.vinext"]}>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On vinext, these PlatformLinks resolve under /platforms/javascript/guides/vinext/…. Those pages only exist under guides/cloudflare/, so they're dead links:

  • /install/vite-plugin/: here (line 117), mcp-monitoring/index.mdx:61, postgresjs.mdx:18 and mistral.mdx:87
  • /agent-tracing/agents-sdk/: here and in mcp-monitoring
  • /install/wrangler/: here and in troubleshooting/index.mdx:616

PlatformLink only uses fallbackGuide for its support check, not for building the URL. The vinext guide itself links to the absolute Cloudflare URL, which works. The "If you deploy with wrangler directly" branches in these sections don't apply to vinext either.


## Compose Cloudflare Instrumentation

Expand Down Expand Up @@ -154,7 +154,7 @@ Any of `id`, `email`, or `username` is sufficient — the Conversations tab disp

The SDK records generative AI inputs and outputs by default. To turn them off:

<PlatformSection notSupported={["javascript.cloudflare"]}>
<PlatformSection notSupported={["javascript.cloudflare", "javascript.vinext"]}>

```javascript
Sentry.init({
Expand All @@ -169,7 +169,7 @@ You can also set `recordInputs` / `recordOutputs` on a specific AI integration.

</PlatformSection>

<PlatformSection supported={["javascript.cloudflare"]}>
<PlatformSection supported={["javascript.cloudflare", "javascript.vinext"]}>

```typescript {filename:src/instrument.server.ts}
import { defineCloudflareOptions } from "@sentry/cloudflare";
Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/common/configuration/apis.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Sentry.setTag("tag", "value");

## Core APIs

<PlatformSection notSupported={["javascript.cloudflare"]}>
<PlatformSection notSupported={["javascript.cloudflare", "javascript.vinext"]}>

<SdkApi
name="init"
Expand Down Expand Up @@ -491,7 +491,7 @@ Sentry.setContext("character", {

<PlatformCategorySection supported={["server"]}>
<Expandable title="Setting The User For the Current Request ">
<PlatformSection notSupported={['javascript.bun', 'javascript.cloudflare', 'javascript.deno', 'javascript.effect', 'javascript.elysia', 'javascript.firebase', 'javascript.react-router', 'javascript.aws-lambda', 'javascript.azure-functions', 'javascript.gcp-functions']}>
<PlatformSection notSupported={['javascript.bun', 'javascript.cloudflare', 'javascript.vinext', 'javascript.deno', 'javascript.effect', 'javascript.elysia', 'javascript.firebase', 'javascript.react-router', 'javascript.aws-lambda', 'javascript.azure-functions', 'javascript.gcp-functions']}>
`Sentry.setUser()` will set the user for the currently active request - see <PlatformLink to="/enriching-events/request-isolation/">Request Isolation</PlatformLink> for more information. For example, if you want to set the user for a single request, you can do this like this:
</PlatformSection>
<PlatformContent includePath="enriching-events/set-user-request" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ notSupported:
- javascript.elysia
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert level="warning">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ notSupported:
- javascript.bun
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ notSupported:
- javascript.elysia
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<AvailableSince version="11.11.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ notSupported:
- javascript.bun
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ notSupported:
- javascript.elysia
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: FetchIntegration
description: "A default integration that creates spans and attaches tracing headers to fetch requests."
supported:
- javascript.cloudflare
- javascript.vinext
- javascript.bun
- javascript.elysia
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ supportedCategories:
- server
notSupported:
- javascript.cloudflare
- javascript.vinext
---

<AvailableSince version="10.22.0" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ supported:
notSupported:
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ supported:
notSupported:
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Sentry.init({
</PlatformCategorySection>

<PlatformCategorySection supported={['server', 'serverless']}>
<PlatformSection notSupported={["javascript.deno", "javascript.cloudflare", "javascript.wasm"]}>
<PlatformSection notSupported={["javascript.deno", "javascript.cloudflare", "javascript.vinext", "javascript.wasm"]}>

For example, to stop recording breadcrumbs for outgoing HTTP requests:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ supported:
notSupported:
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The Mistral SDK must be part of the bundle. The plugin only runs during a build,

</PlatformSection>

<PlatformSection supported={["javascript.cloudflare"]}>
<PlatformSection supported={["javascript.cloudflare", "javascript.vinext"]}>

On Cloudflare, add `sentryCloudflareVitePlugin()` alongside Cloudflare's Vite plugin so the bundled Mistral SDK is instrumented:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ supported:
notSupported:
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ notSupported:
- javascript.elysia
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ notSupported:
- javascript.elysia
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ notSupported:
- javascript.elysia
- javascript.deno
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The `instrumentPostgresJsSql` helper adds instrumentation for the [`postgres`](h

## Usage

<PlatformSection supported={["javascript.cloudflare"]}>
<PlatformSection supported={["javascript.cloudflare", "javascript.vinext"]}>

If you build your Worker with the <PlatformLink to="/install/vite-plugin/">Sentry Cloudflare Vite plugin</PlatformLink>, you don't need this helper. The plugin traces postgres.js automatically, as long as `postgres` is bundled and not marked as external. If you deploy with `wrangler` directly, wrap your `sql` instance with the helper:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ supportedCategories:
- serverless
notSupported:
- javascript.cloudflare
- javascript.vinext
---

<Alert>
Expand Down
18 changes: 10 additions & 8 deletions docs/platforms/javascript/common/configuration/options.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Set this option to `false` to disable sending of client reports. Client reports

Set this option to `true` to add stack local variables to stack traces.

<PlatformSection notSupported={["javascript.bun", "javascript.cloudflare", "javascript.deno", "javascript.effect", "javascript.elysia", "javascript.firebase", "javascript.nitro"]}>
<PlatformSection notSupported={["javascript.bun", "javascript.cloudflare", "javascript.vinext", "javascript.deno", "javascript.effect", "javascript.elysia", "javascript.firebase", "javascript.nitro"]}>

For more advanced configuration options, see the documentation on the <PlatformLink to="/configuration/integrations/localvariables/">Local Variables integration options</PlatformLink>.

Expand Down Expand Up @@ -340,6 +340,7 @@ The callback gets a second argument (called a "hint") which contains the origina
"javascript.elysia",
"javascript.deno",
"javascript.cloudflare",
"javascript.vinext",
]}
>
<PlatformCategorySection supported={["server", "serverless"]}>
Expand All @@ -353,6 +354,7 @@ The callback gets a second argument (called a "hint") which contains the origina
"javascript.elysia",
"javascript.deno",
"javascript.cloudflare",
"javascript.vinext",
]}
>
A `fetch`-based transport is used by default.
Expand All @@ -370,7 +372,7 @@ The callback gets a second argument (called a "hint") which contains the origina

Options used to configure the transport. This is an object with the following possible optional keys:

<PlatformSection notSupported={["javascript.bun", "javascript.elysia", "javascript.deno", "javascript.cloudflare"]}>
<PlatformSection notSupported={["javascript.bun", "javascript.elysia", "javascript.deno", "javascript.cloudflare", "javascript.vinext"]}>
<PlatformCategorySection supported={["server", "serverless"]}>

<PlatformCategorySection supported={["browser", "desktop"]}>
Expand All @@ -386,11 +388,11 @@ Options used to configure the transport. This is an object with the following po
</PlatformCategorySection>
</PlatformSection>

<PlatformSection supported={["javascript.bun", "javascript.elysia", "javascript.deno", "javascript.cloudflare"]}>
<PlatformSection supported={["javascript.bun", "javascript.elysia", "javascript.deno", "javascript.cloudflare", "javascript.vinext"]}>

- `headers`: An object containing headers to be sent with every request.

<PlatformSection supported={["javascript.cloudflare"]}>
<PlatformSection supported={["javascript.cloudflare", "javascript.vinext"]}>

- `fetchOptions`: An object containing options to be passed to the `fetch` call.
- `fetch`: A custom `fetch` function to use for requests.
Expand Down Expand Up @@ -623,7 +625,7 @@ If you want to disable trace propagation, you can set this option to `[]`.

</SdkOption>

<PlatformSection supported={['javascript.cloudflare']}>
<PlatformSection supported={['javascript.cloudflare', 'javascript.vinext']}>

<SdkOption name="cacheClient" type="boolean" defaultValue="true">

Expand Down Expand Up @@ -884,7 +886,7 @@ Controls whether the SDK sets up an OpenTelemetry tracer provider to capture spa

Keep this option set to `false` if you manage your own OpenTelemetry tracer provider.

<PlatformSection supported={["javascript.cloudflare"]}>
<PlatformSection supported={["javascript.cloudflare", "javascript.vinext"]}>
This option is not available through `@sentry/cloudflare/request`.
</PlatformSection>

Expand Down Expand Up @@ -994,7 +996,7 @@ This option is required to enable profiling (default is `0`).

Determines how profiling sessions are controlled. It has two modes:

- `'manual'` (default): You control when profiling starts and stops using the `startProfiler()` and `stopProfiler()` functions. In this mode, profile sampling is only affected by `profileSessionSampleRate`.<PlatformSection notSupported={["javascript.bun", "javascript.capacitor", "javascript.deno", "javascript.cloudflare"]}> Read more about these functions in the <PlatformLink to="/profiling/">profiling API documentation</PlatformLink>.</PlatformSection>
- `'manual'` (default): You control when profiling starts and stops using the `startProfiler()` and `stopProfiler()` functions. In this mode, profile sampling is only affected by `profileSessionSampleRate`.<PlatformSection notSupported={["javascript.bun", "javascript.capacitor", "javascript.deno", "javascript.cloudflare", "javascript.vinext"]}> Read more about these functions in the <PlatformLink to="/profiling/">profiling API documentation</PlatformLink>.</PlatformSection>
- `'trace'`: Profiling starts and stops automatically with transactions (or service spans if you're using <PlatformLink to="/tracing/streamed-spans/" fallbackPlatform="javascript">stream mode</PlatformLink>), as long as tracing is enabled. The profiler runs as long as there is at least one sampled transaction. In this mode, profiling is affected by both `profileSessionSampleRate` and your tracing sample rate (`tracesSampleRate` or `tracesSampler`).

</SdkOption>
Expand Down Expand Up @@ -1025,7 +1027,7 @@ This option is required to enable profiling (default is `0`).

Determines how profiling sessions are controlled. It has two modes:

- `'manual'` (default): You control when profiling starts and stops using the `startProfiler()` and `stopProfiler()` functions. In this mode, profile sampling is only affected by `profileSessionSampleRate`.<PlatformSection notSupported={["javascript.bun", "javascript.capacitor", "javascript.deno", "javascript.cloudflare"]}> Read more about these functions in the <PlatformLink to="/profiling/">profiling API documentation</PlatformLink>.</PlatformSection>
- `'manual'` (default): You control when profiling starts and stops using the `startProfiler()` and `stopProfiler()` functions. In this mode, profile sampling is only affected by `profileSessionSampleRate`.<PlatformSection notSupported={["javascript.bun", "javascript.capacitor", "javascript.deno", "javascript.cloudflare", "javascript.vinext"]}> Read more about these functions in the <PlatformLink to="/profiling/">profiling API documentation</PlatformLink>.</PlatformSection>
- `'trace'`: Profiling starts and stops automatically with root spans, as long as tracing is enabled. The profiler runs while there is at least one active, sampled root span, up to a maximum of 5 minutes per root span. In this mode, profiling is affected by both `profileSessionSampleRate` and your tracing sample rate (`tracesSampleRate` or `tracesSampler`).

</SdkOption>
Expand Down
2 changes: 2 additions & 0 deletions docs/platforms/javascript/common/configuration/tunneling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: "Send browser SDK events to Sentry through your own server, so ad b
supportedCategories:
- browser
- server
notSupported:
- javascript.vinext
---

Ad blockers often block requests to Sentry, so your events never arrive. A tunnel is an endpoint on your own origin that forwards events to Sentry, and ad blockers let requests to your own origin through.
Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/common/crons/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ supportedCategories:

Once implemented, it'll allow you to get alerts and metrics to help you solve errors, detect timeouts, and prevent disruptions to your service.

<PlatformSection supported={['javascript.nextjs', 'javascript.sveltekit', 'javascript.remix', 'javascript.astro', 'javascript.bun', 'javascript.deno', 'javascript.cloudflare', 'javascript.node', 'javascript.aws-lambda', 'javascript.azure-functions', 'javascript.express', "javascript.fastify", 'javascript.gcp-functions', 'javascript.hapi', 'javascript.hono', 'javascript.koa', 'javascript.nestjs', 'javascript.tanstackstart-react']}>
<PlatformSection supported={['javascript.nextjs', 'javascript.sveltekit', 'javascript.remix', 'javascript.astro', 'javascript.bun', 'javascript.deno', 'javascript.cloudflare', 'javascript.vinext', 'javascript.node', 'javascript.aws-lambda', 'javascript.azure-functions', 'javascript.express', "javascript.fastify", 'javascript.gcp-functions', 'javascript.hapi', 'javascript.hono', 'javascript.koa', 'javascript.nestjs', 'javascript.tanstackstart-react']}>

## Requirements

Expand All @@ -20,7 +20,7 @@ Once implemented, it'll allow you to get alerts and metrics to help you solve er

</PlatformSection>

<PlatformSection notSupported={['javascript.nextjs', 'javascript.sveltekit', 'javascript.remix', 'javascript.astro', 'javascript.bun', 'javascript.deno', 'javascript.cloudflare', 'javascript.node', 'javascript.aws-lambda', 'javascript.azure-functions', 'javascript.express', 'javascript.fastify', 'javascript.gcp-functions', 'javascript.hapi', 'javascript.hono', 'javascript.koa', 'javascript.nestjs', 'javascript.tanstackstart-react']}>
<PlatformSection notSupported={['javascript.nextjs', 'javascript.sveltekit', 'javascript.remix', 'javascript.astro', 'javascript.bun', 'javascript.deno', 'javascript.cloudflare', 'javascript.vinext', 'javascript.node', 'javascript.aws-lambda', 'javascript.azure-functions', 'javascript.express', 'javascript.fastify', 'javascript.gcp-functions', 'javascript.hapi', 'javascript.hono', 'javascript.koa', 'javascript.nestjs', 'javascript.tanstackstart-react']}>

## Requirements

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Sentry.init({

The body size, taken from the `content-length` header, is always sent, even when body collection is disabled.

<PlatformSection notSupported={["javascript", "javascript.angular", "javascript.capacitor", "javascript.effect", "javascript.elysia", "javascript.ember", "javascript.firebase", "javascript.gatsby", "javascript.nitro", "javascript.react", "javascript.solid", "javascript.svelte", "javascript.vue", "javascript.wasm", "javascript.cloudflare", "javascript.deno"]}>
<PlatformSection notSupported={["javascript", "javascript.angular", "javascript.capacitor", "javascript.effect", "javascript.elysia", "javascript.ember", "javascript.firebase", "javascript.gatsby", "javascript.nitro", "javascript.react", "javascript.solid", "javascript.svelte", "javascript.vue", "javascript.wasm", "javascript.cloudflare", "javascript.vinext", "javascript.deno"]}>
On the server-side, the incoming request body is captured by default. You can disable sending the incoming request body by configuring `ignoreRequestBody` in the <PlatformLink to="/configuration/integrations/http/">HTTP Integration</PlatformLink>.
</PlatformSection>

Expand Down Expand Up @@ -139,7 +139,7 @@ To disable source map upload, see <PlatformLink to="/sourcemaps/">the Source Map

The Sentry SDK does not send local variables in the error stack trace in client-side JavaScript SDKs.

<PlatformSection notSupported={["javascript", "javascript.angular", "javascript.capacitor", "javascript.effect", "javascript.elysia", "javascript.ember", "javascript.firebase", "javascript.gatsby", "javascript.nitro", "javascript.react", "javascript.solid", "javascript.svelte", "javascript.vue", "javascript.wasm", "javascript.bun", "javascript.cloudflare", "javascript.deno"]}>
<PlatformSection notSupported={["javascript", "javascript.angular", "javascript.capacitor", "javascript.effect", "javascript.elysia", "javascript.ember", "javascript.firebase", "javascript.gatsby", "javascript.nitro", "javascript.react", "javascript.solid", "javascript.svelte", "javascript.vue", "javascript.wasm", "javascript.bun", "javascript.cloudflare", "javascript.vinext", "javascript.deno"]}>
You can enable sending local variables by setting `includeLocalVariables: true` in the `Sentry.init()` call. This activates the <PlatformLink to="/configuration/integrations/localvariables/">Local Variables Integration</PlatformLink>. The integration is added by default in Node.js-based runtimes.
</PlatformSection>

Expand Down Expand Up @@ -191,7 +191,7 @@ By default, the Sentry SDK sends information about the device and runtime to Sen
</PlatformSection>
</PlatformCategorySection>

<PlatformSection notSupported={["javascript", "javascript.angular", "javascript.capacitor", "javascript.cloudflare", "javascript.ember", "javascript.gatsby", "javascript.react", "javascript.solid", "javascript.svelte", "javascript.vue", "javascript.wasm"]}>
<PlatformSection notSupported={["javascript", "javascript.angular", "javascript.capacitor", "javascript.cloudflare", "javascript.vinext", "javascript.ember", "javascript.gatsby", "javascript.react", "javascript.solid", "javascript.svelte", "javascript.vue", "javascript.wasm"]}>
<PlatformSection notSupported={["javascript.fastify", "javascript.hono", "javascript.nitro"]}>
## Stack Trace Context Lines

Expand Down
Loading
Loading