### Implement the `setup` Hook Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/custom Use the `setup` hook to execute code when the Sentry SDK is initialized. It receives the client instance. ```javascript const integration = { name: "MyAwesomeIntegration", setup(client) { setupCustomSentryListener(client); }, }; ``` -------------------------------- ### Install Sentry Node.js Core (yarn) Source: https://docs.sentry.io/platforms/javascript/guides/node/install/lightweight Install the core Sentry package using yarn for lightweight mode. ```bash yarn add @sentry/node-core ``` -------------------------------- ### Install Sentry Node.js Core (npm) Source: https://docs.sentry.io/platforms/javascript/guides/node/install/lightweight Install the core Sentry package using npm for lightweight mode. ```bash npm install @sentry/node-core --save ``` -------------------------------- ### Run Sentry Wizard for Automatic Setup Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/esbuild Use the Sentry Wizard command to automatically configure source map uploading with esbuild. This wizard guides you through project selection, package installation, and build tool configuration. ```bash npx @sentry/wizard@latest -i sourcemaps ``` -------------------------------- ### Install Sentry Node.js Core (pnpm) Source: https://docs.sentry.io/platforms/javascript/guides/node/install/lightweight Install the core Sentry package using pnpm for lightweight mode. ```bash pnpm add @sentry/node-core ``` -------------------------------- ### Configure User Feedback (CDN Install) Source: https://docs.sentry.io/platforms/javascript/guides/node/user-feedback/configuration Use `feedbackAsyncIntegration` when installing Sentry SDK via CDN. This offers the smallest bundle size by loading necessary components asynchronously when the feedback button is clicked. ```javascript import * as Sentry from "@sentry/browser"; Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [ // Use the default strategy, an alias for `feedbackAsyncIntegration` Sentry.feedbackIntegration({ // Additional SDK configuration goes in here, for example: colorScheme: "system", }), ], }); ``` -------------------------------- ### startSession Source: https://docs.sentry.io/platforms/javascript/guides/node/enriching-events/identify-user Starts a new session. ```APIDOC ## startSession ### Description Starts a new session. ### Returns - **Session** - The newly created session object. ### Request Example ```javascript const session = Sentry.startSession(); ``` ``` -------------------------------- ### startSession Source: https://docs.sentry.io/platforms/javascript/guides/node/apis Starts a new session for tracking release health. ```APIDOC ## startSession ### Description Starts a new session. ### Returns - Session - The newly started session object. ``` -------------------------------- ### startSession Source: https://docs.sentry.io/platforms/javascript/guides/node/enriching-events/identify-user Starts a new user session. ```APIDOC ## startSession ### Description Starts a new user session. ### Signature ```typescript function startSession(): void ``` ``` -------------------------------- ### Install OpenTelemetry Dependencies with npm Source: https://docs.sentry.io/platforms/javascript/guides/node/install/lightweight Install the necessary OpenTelemetry packages alongside `@sentry/node-core` when using npm. ```bash npm install @opentelemetry/api @opentelemetry/sdk-trace-node @opentelemetry/exporter-trace-otlp-http ``` -------------------------------- ### Implement the `afterAllSetup` Hook Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/custom The `afterAllSetup` hook is triggered after all other integrations have completed their `setupOnce` and `setup` hooks. It receives the client instance. ```javascript const integration = { name: "MyAwesomeIntegration", afterAllSetup(client) { // We can be sure that all other integrations // have run their `setup` and `setupOnce` hooks now startSomeThing(client); }, }; ``` -------------------------------- ### Install OpenTelemetry Dependencies with pnpm Source: https://docs.sentry.io/platforms/javascript/guides/node/install/lightweight Install the necessary OpenTelemetry packages alongside `@sentry/node-core` when using pnpm. ```bash pnpm add @opentelemetry/api @opentelemetry/sdk-trace-node @opentelemetry/exporter-trace-otlp-http ``` -------------------------------- ### Install @sentry/profiling-node with npm Source: https://docs.sentry.io/platforms/javascript/guides/node/profiling Install the profiling package using npm. Ensure the version matches your main Sentry SDK package. ```bash npm install @sentry/profiling-node --save ``` -------------------------------- ### Install @sentry/profiling-node with pnpm Source: https://docs.sentry.io/platforms/javascript/guides/node/profiling Install the profiling package using pnpm. Ensure the version matches your main Sentry SDK package. ```bash pnpm add @sentry/profiling-node ``` -------------------------------- ### Install @sentry/profiling-node with yarn Source: https://docs.sentry.io/platforms/javascript/guides/node/profiling Install the profiling package using yarn. Ensure the version matches your main Sentry SDK package. ```bash yarn add @sentry/profiling-node ``` -------------------------------- ### Interval Schedule Example Source: https://docs.sentry.io/platforms/javascript/guides/node/crons Use this format to define an interval schedule for your monitor. ```json {"type": "interval", "value": "2", "unit": "hour"} ``` -------------------------------- ### Install Sentry Vite Plugin with pnpm Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/vite Install the Sentry Vite plugin as a development dependency using pnpm. ```bash pnpm add @sentry/vite-plugin --save-dev ``` -------------------------------- ### Install Sentry Vite Plugin with yarn Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/vite Install the Sentry Vite plugin as a development dependency using yarn. ```bash yarn add @sentry/vite-plugin --dev ``` -------------------------------- ### startNewTrace Source: https://docs.sentry.io/platforms/javascript/guides/node/apis Starts a new trace that is active within the provided callback function. ```APIDOC ## startNewTrace ### Description Start a new trace that is active in the provided callback. ### Parameters - **callback** (function) - Required - The callback function within which a new trace will be active. ### Returns - T - The return value of the callback function. ``` -------------------------------- ### Install Sentry Node.js Native Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/event-loop-block Install the necessary Sentry package for Node.js native integrations using npm, yarn, or pnpm. ```bash npm install @sentry/node-native ``` ```bash yarn add @sentry/node-native ``` ```bash pnpm add @sentry/node-native ``` -------------------------------- ### Install Sentry esbuild Plugin with pnpm Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/esbuild Install the Sentry esbuild plugin as a development dependency using pnpm. ```bash pnpm add @sentry/esbuild-plugin --save-dev ``` -------------------------------- ### startNewTrace Source: https://docs.sentry.io/platforms/javascript/guides/node/enriching-events/identify-user Starts a new trace, independent of any existing trace context. ```APIDOC ## startNewTrace ### Description Starts a new trace. ### Signature ```typescript function startNewTrace(spanOptions?: SpanOptions): Span ``` ``` -------------------------------- ### Install Sentry SDK and Profiling with npm Source: https://docs.sentry.io/platforms/javascript/guides/node Add the core Sentry SDK and the profiling package to your Node.js application using npm. ```bash npm install @sentry/node @sentry/profiling-node --save ``` -------------------------------- ### Configure User Feedback (NPM Install) Source: https://docs.sentry.io/platforms/javascript/guides/node/user-feedback/configuration Use `feedbackSyncIntegration` when installing Sentry SDK via NPM. This includes all feedback UI code upfront, resulting in a larger initial bundle size but guaranteeing the widget is ready. ```javascript import * as Sentry from "@sentry/browser"; Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [ // Use the default strategy, an alias for `feedbackSyncIntegration` Sentry.feedbackIntegration({ // Additional SDK configuration goes in here, for example: colorScheme: "system", }), ], }); ``` -------------------------------- ### Install Sentry SDK with npm Source: https://docs.sentry.io/platforms/javascript/guides/node Use this command to add the core Sentry SDK to your Node.js application using npm. ```bash npm install @sentry/node ``` -------------------------------- ### Crontab Schedule Example Source: https://docs.sentry.io/platforms/javascript/guides/node/crons Use this format to define a crontab schedule for your monitor. ```json {"type": "crontab", "value": "0 * * * *"} ``` -------------------------------- ### Initialize NodeProfiling with CJS Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/nodeprofiling Use this snippet to set up the NodeProfiling integration in CommonJS modules. Ensure `@sentry/profiling-node` is installed. ```javascript const Sentry = require("@sentry/node"); const { nodeProfilingIntegration } = require("@sentry/profiling-node"); Sentry.init({ integrations: [nodeProfilingIntegration()], }); ``` -------------------------------- ### Add Integrations via Sentry Init Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/pluggable-integrations Integrations can be added directly within the `init` call. This example shows how to add the `captureConsoleIntegration`. ```javascript import * as Sentry from "@sentry/node"; Sentry.init({ dsn: "https://examplePublicKey@o0.ingest.sentry.io/0", integrations: [], }); Sentry.addIntegration(Sentry.captureConsoleIntegration()); ``` ```javascript import * as Sentry from "@sentry/node"; Sentry.init({ dsn: "https://examplePublicKey@o0.ingest.sentry.io/0", integrations: [], }); Sentry.addIntegration(Sentry.captureConsoleIntegration()); ``` ```javascript import * as Sentry from "@sentry/node"; Sentry.init({ dsn: "https://examplePublicKey@o0.ingest.sentry.io/0", integrations: [Sentry.captureConsoleIntegration()], }); ``` ```javascript import * as Sentry from "@sentry/node"; Sentry.init({ dsn: "https://examplePublicKey@o0.ingest.sentry.io/0", integrations: [Sentry.captureConsoleIntegration()], }); ``` -------------------------------- ### Initialize NodeProfiling with ESM Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/nodeprofiling Use this snippet to set up the NodeProfiling integration in ES Modules. Ensure `@sentry/profiling-node` is installed. ```javascript import * as Sentry from "@sentry/node"; import { nodeProfilingIntegration } from "@sentry/profiling-node"; Sentry.init({ integrations: [nodeProfilingIntegration()], }); ``` -------------------------------- ### Install Sentry SDK with yarn Source: https://docs.sentry.io/platforms/javascript/guides/node Use this command to add the core Sentry SDK to your Node.js application using yarn. ```bash yarn add @sentry/node ``` -------------------------------- ### Install Sentry SDK with pnpm Source: https://docs.sentry.io/platforms/javascript/guides/node Use this command to add the core Sentry SDK to your Node.js application using pnpm. ```bash pnpm add @sentry/node ``` -------------------------------- ### Install Sentry SDK and Profiling with yarn Source: https://docs.sentry.io/platforms/javascript/guides/node Add the core Sentry SDK and the profiling package to your Node.js application using yarn. ```bash yarn add @sentry/node @sentry/profiling-node ``` -------------------------------- ### Implement the `setupOnce` Hook Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/custom The `setupOnce` hook runs only once, even if the SDK is re-initialized. It is useful for ensuring code runs a single time. ```javascript const integration = { name: "MyAwesomeIntegration", setupOnce() { wrapLibrary(); }, }; ``` -------------------------------- ### Example SourceMappingURL Comment Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/troubleshooting_js/legacy-uploading-methods This is an example of a `sourceMappingURL` comment found in minified JavaScript files. ```javascript // -- end script.min.js (located at http://localhost:8000/scripts/script.min.js) //# sourceMappingURL=script.min.js.map ``` -------------------------------- ### Install Sentry SDK and Profiling with pnpm Source: https://docs.sentry.io/platforms/javascript/guides/node Add the core Sentry SDK and the profiling package to your Node.js application using pnpm. ```bash pnpm add @sentry/node @sentry/profiling-node ``` -------------------------------- ### startSpanManual Source: https://docs.sentry.io/platforms/javascript/guides/node/enriching-events/identify-user Starts a new span manually, allowing for custom start and end times. ```APIDOC ## startSpanManual ### Description Starts a new span manually. ### Signature ```typescript function startSpanManual(spanOptions: SpanOptions): Span ``` ``` -------------------------------- ### init Source: https://docs.sentry.io/platforms/javascript/guides/node/apis Initialize the SDK with the given options. See Options for the options you can pass to `init`. ```APIDOC ## init ### Description Initialize the SDK with the given options. See Options for the options you can pass to `init`. ### Method ``` function init(options: InitOptions): Client | undefined ``` ``` -------------------------------- ### Start New Session Source: https://docs.sentry.io/platforms/javascript/guides/node/apis Starts a new Sentry session. Sessions are used for tracking release health. ```typescript function startSession(): Session ``` -------------------------------- ### init Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/apis Initializes the Sentry SDK with the provided options. This is the primary method for setting up the SDK. ```APIDOC ## init ### Description Initializes the SDK with the given options. See [Options](https://docs.sentry.io/platforms/javascript/guides/node/configuration/options.md) for the options you can pass to `init`. ### Function Signature ```javascript function init(options: InitOptions): Client | undefined ``` ``` -------------------------------- ### Install OpenTelemetry Dependencies with yarn Source: https://docs.sentry.io/platforms/javascript/guides/node/install/lightweight Install the necessary OpenTelemetry packages alongside `@sentry/node-core` when using yarn. ```bash yarn add @opentelemetry/api @opentelemetry/sdk-trace-node @opentelemetry/exporter-trace-otlp-http ``` -------------------------------- ### Initialize Sentry SDK Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/apis Initialize the SDK with configuration options. Refer to the Options documentation for a full list of configurable parameters. ```typescript function init(options: InitOptions): Client | undefined ``` -------------------------------- ### Install Sentry Vite Plugin with npm Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/vite Install the Sentry Vite plugin as a development dependency using npm. ```bash npm install @sentry/vite-plugin --save-dev ``` -------------------------------- ### Install Sentry webpack plugin with pnpm Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/webpack Install the Sentry webpack plugin as a development dependency using pnpm. ```bash pnpm add @sentry/webpack-plugin --save-dev ``` -------------------------------- ### Create/Update Cron Monitor Programmatically Source: https://docs.sentry.io/platforms/javascript/guides/node/crons This example shows how to define monitor configuration, including schedule, check-in margin, max runtime, and timezone, and then use `Sentry.withMonitor` to execute a task within that monitor's context. ```javascript const monitorConfig = { schedule: { type: "crontab", value: "* * * * *", }, checkinMargin: 2, // In minutes. Optional. maxRuntime: 10, // In minutes. Optional. timezone: "America/Los_Angeles", // Optional. }; Sentry.withMonitor( "", () => { // Execute your scheduled task here... }, monitorConfig, ); ``` -------------------------------- ### Install Sentry webpack plugin with yarn Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/webpack Install the Sentry webpack plugin as a development dependency using yarn. ```bash yarn add @sentry/webpack-plugin --dev ``` -------------------------------- ### Install Sentry webpack plugin with npm Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/webpack Install the Sentry webpack plugin as a development dependency using npm. ```bash npm install @sentry/webpack-plugin --save-dev ``` -------------------------------- ### Initialize the Sentry SDK Source: https://docs.sentry.io/platforms/javascript/guides/node/enriching-events/identify-user Initialize the Sentry SDK with configuration options. This is a required step before using other SDK functionalities. ```javascript function init(options: InitOptions): Client | undefined ``` -------------------------------- ### Install Sentry esbuild Plugin with yarn Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/esbuild Install the Sentry esbuild plugin as a development dependency using yarn. ```bash yarn add @sentry/esbuild-plugin --dev ``` -------------------------------- ### Initialize Sentry with FileSystem Integration Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/fs Include the `fsIntegration` in your Sentry.init configuration to instrument filesystem operations. This integration is only compatible with Node.js and Bun environments. ```javascript Sentry.init({ integrations: [Sentry.fsIntegration()], }); ``` -------------------------------- ### Install Sentry esbuild Plugin with npm Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/esbuild Install the Sentry esbuild plugin as a development dependency using npm. ```bash npm install @sentry/esbuild-plugin --save-dev ``` -------------------------------- ### Configure Supabase Integration Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/supabase Initialize Sentry with the Supabase integration. Ensure you have both the Sentry SDK and Supabase client installed. Replace placeholders with your actual DSN, Supabase URL, and Supabase Key. ```javascript import * as Sentry from "___SDK_PACKAGE___"; import { createClient } from "@supabase/supabase-js"; const supabaseClient = createClient( "YOUR_SUPABASE_URL", "YOUR_SUPABASE_KEY", ); Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [Sentry.supabaseIntegration({ supabaseClient })], tracesSampleRate: 1.0, }); ``` -------------------------------- ### Import Sentry Initialization in Application Source: https://docs.sentry.io/platforms/javascript/guides/node/install/esm-without-import Import the Sentry initialization file first in your application's entry point. This ensures Sentry is set up before other modules are loaded. ```javascript // Import this first! import "./instrument"; // Now import other modules import http from "http"; // Your application code goes here ``` -------------------------------- ### Install source-map library globally Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/troubleshooting_js Install the `source-map` library globally using npm to enable local verification of source maps. ```bash npm install -g source-map ``` -------------------------------- ### Initialize Postgres Integration Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/postgres Use this to enable the default Postgres integration. It's automatically included when performance monitoring is enabled. ```javascript Sentry.init({ integrations: [Sentry.postgresIntegration()], }); ``` -------------------------------- ### Install Sentry Rollup Plugin with pnpm Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/rollup Use this command to install the Sentry Rollup plugin as a development dependency using pnpm. ```bash pnpm add @sentry/rollup-plugin --save-dev ``` -------------------------------- ### Install Sentry Rollup Plugin with yarn Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/rollup Use this command to install the Sentry Rollup plugin as a development dependency using yarn. ```bash yarn add @sentry/rollup-plugin --dev ``` -------------------------------- ### Initialize SDK with DSN Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/environments Configure the SDK with your project's DSN to enable event submission. The DSN is essential for the SDK to know where to send captured events. If not provided, no events will be sent. ```javascript Sentry.init({ dsn: "https://examplePublicKey@o0.ingest.sentry.io/0", }); ``` ```javascript Sentry.init({ dsn: "___PUBLIC_DSN___", }); ``` -------------------------------- ### Install Sentry Rollup Plugin with npm Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/uploading/rollup Use this command to install the Sentry Rollup plugin as a development dependency using npm. ```bash npm install @sentry/rollup-plugin --save-dev ``` -------------------------------- ### Initialize Sentry with Pino Integration Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/pino Enable logs and add the Pino integration to Sentry.init. Requires SDK version 10.18.0 or higher. ```javascript Sentry.init({ enableLogs: true, integrations: [Sentry.pinoIntegration()], }); ``` -------------------------------- ### Upload Sourcemaps with sentry-cli (Full URL Prefix) Source: https://docs.sentry.io/platforms/javascript/guides/node/sourcemaps/troubleshooting_js/legacy-uploading-methods Upload sourcemaps using a fully qualified URL as the prefix. This is an alternative to using the `~` prefix. ```bash sentry-cli sourcemaps upload --url-prefix 'http://localhost:8000/scripts' . ``` -------------------------------- ### Install Mastra Sentry Exporter with pnpm Source: https://docs.sentry.io/platforms/javascript/guides/node/ai-agent-monitoring/mastra Use this command to install the latest Mastra Sentry exporter package via pnpm. ```bash pnpm add @mastra/sentry@latest ``` -------------------------------- ### Install Mastra Sentry Exporter with yarn Source: https://docs.sentry.io/platforms/javascript/guides/node/ai-agent-monitoring/mastra Use this command to install the latest Mastra Sentry exporter package via yarn. ```bash yarn add @mastra/sentry@latest ``` -------------------------------- ### setCurrentClient Source: https://docs.sentry.io/platforms/javascript/guides/node/apis Make the given client the current client. You do not need this if you use `init()`, this is only necessary if you are manually setting up a client. ```APIDOC ## setCurrentClient ### Description Make the given client the current client. You do not need this if you use `init()`, this is only necessary if you are manually setting up a client. ### Method ``` function setCurrentClient(client: Client): void ``` ``` -------------------------------- ### Install Mastra Sentry Exporter with npm Source: https://docs.sentry.io/platforms/javascript/guides/node/ai-agent-monitoring/mastra Use this command to install the latest Mastra Sentry exporter package via npm. ```bash npm install @mastra/sentry@latest ``` -------------------------------- ### Initialize Sentry SDK Source: https://docs.sentry.io/platforms/javascript/guides/node/tracing/distributed-tracing Basic Sentry initialization for Node.js. Ensure 'tracesSampleRate' is set to capture traces. ```javascript Sentry.init({ dsn: "___PUBLIC_DSN___", tracesSampleRate: 1, }); ``` -------------------------------- ### Example of Setting Context Source: https://docs.sentry.io/platforms/javascript/guides/node/apis This example demonstrates how to set custom context data for a Sentry event, including nested properties like name, age, and attack type. ```javascript Sentry.setContext("character", { name: "Mighty Fighter", age: 19, attack_type: "melee", }); ``` -------------------------------- ### Start New Trace in Callback Source: https://docs.sentry.io/platforms/javascript/guides/node/apis Initiates a new trace that becomes active within the provided callback. Any spans created here will start a fresh trace, independent of any existing ones. ```typescript function startNewTrace(callback: () => T): T ``` -------------------------------- ### Start Spans within a Callback Source: https://docs.sentry.io/platforms/javascript/guides/node/enriching-events/identify-user Start a new span that is active within a provided callback function. The span automatically ends when the callback returns. This is useful for measuring synchronous or asynchronous operations. ```typescript function startSpan(options: StartSpanOptions, callback: (span: Span) => T): T ``` ```javascript // Synchronous example Sentry.startSpan({ name: "my-span" }, (span) => { measureThis(); }); // Asynchronous example const status = await Sentry.startSpan( { name: "my-span" }, async (span) => { const status = await doSomething(); return status; }, ); ``` ```javascript // Synchronous example Sentry.startSpan({ name: "my-span" }, (span) => { measureThis(); }); // Asynchronous example const status = await Sentry.startSpan( { name: "my-span" }, async (span) => { const status = await doSomething(); return status; }, ); ``` -------------------------------- ### Initialize NodeRuntimeMetrics Integration Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/noderuntimemetrics Import and initialize the NodeRuntimeMetrics integration with default settings. Ensure Sentry is initialized with your DSN. ```javascript import * as Sentry from "@sentry/node"; Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [Sentry.nodeRuntimeMetricsIntegration()] }); ``` -------------------------------- ### Initialize Sentry with Vercel AI Integration Source: https://docs.sentry.io/platforms/javascript/guides/node/configuration/integrations/vercelai Enable the Vercel AI integration and configure it to record inputs and outputs. Requires SDK version 10.6.0+. ```javascript Sentry.init({ dsn: "____PUBLIC_DSN____" tracesSampleRate: 1.0, streamGenAiSpans: true, integrations: [ Sentry.vercelAIIntegration({ recordInputs: true, recordOutputs: true, }), ], }); ```