diff --git a/docs/platforms/javascript/guides/angular/manual-setup.mdx b/docs/platforms/javascript/guides/angular/manual-setup.mdx index 791d51b5598e1..17476628b3f9d 100644 --- a/docs/platforms/javascript/guides/angular/manual-setup.mdx +++ b/docs/platforms/javascript/guides/angular/manual-setup.mdx @@ -117,9 +117,9 @@ import * as Sentry from "@sentry/angular"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/angular/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance @@ -182,9 +182,9 @@ import * as Sentry from "@sentry/angular"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/angular/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance diff --git a/docs/platforms/javascript/guides/aws-lambda/install/layer.mdx b/docs/platforms/javascript/guides/aws-lambda/install/layer.mdx index e897df5ea3ca1..7b3bc465aa195 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/layer.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/layer.mdx @@ -73,9 +73,9 @@ const Sentry = require("@sentry/aws-serverless"); Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/aws-lambda/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Add Tracing by setting tracesSampleRate and adding integration @@ -94,9 +94,9 @@ import * as Sentry from "@sentry/aws-serverless"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/aws-lambda/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Add Tracing by setting tracesSampleRate and adding integration diff --git a/docs/platforms/javascript/guides/aws-lambda/install/npm.mdx b/docs/platforms/javascript/guides/aws-lambda/install/npm.mdx index 12acc5a665d98..432e2f218ff77 100644 --- a/docs/platforms/javascript/guides/aws-lambda/install/npm.mdx +++ b/docs/platforms/javascript/guides/aws-lambda/install/npm.mdx @@ -99,9 +99,9 @@ const { nodeProfilingIntegration } = require("@sentry/profiling-node"); Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/aws-lambda/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [nodeProfilingIntegration()], @@ -134,9 +134,9 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/aws-lambda/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [nodeProfilingIntegration()], diff --git a/docs/platforms/javascript/guides/azure-functions/index.mdx b/docs/platforms/javascript/guides/azure-functions/index.mdx index a0b417b7d7377..0f56a20d22aec 100644 --- a/docs/platforms/javascript/guides/azure-functions/index.mdx +++ b/docs/platforms/javascript/guides/azure-functions/index.mdx @@ -60,9 +60,9 @@ const { nodeProfilingIntegration } = require("@sentry/profiling-node"); Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/azure-functions/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [nodeProfilingIntegration()], diff --git a/docs/platforms/javascript/guides/bun/index.mdx b/docs/platforms/javascript/guides/bun/index.mdx index a192c29f03943..e6b0336c37839 100644 --- a/docs/platforms/javascript/guides/bun/index.mdx +++ b/docs/platforms/javascript/guides/bun/index.mdx @@ -63,9 +63,9 @@ import * as Sentry from "@sentry/bun"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/bun/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Add Performance Monitoring by setting tracesSampleRate diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/astro.mdx b/docs/platforms/javascript/guides/cloudflare/frameworks/astro.mdx index 143cee7ea58e9..8d707b34075b0 100644 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/astro.mdx +++ b/docs/platforms/javascript/guides/cloudflare/frameworks/astro.mdx @@ -100,9 +100,9 @@ export const onRequest = [ // Make sure Sentry is the first middleware Sentry.sentryPagesPlugin((context) => ({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, tracesSampleRate: 1.0, })), // Add more middlewares here diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router.mdx b/docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router.mdx index 110d9bcf2460b..6ed7868d37820 100644 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router.mdx +++ b/docs/platforms/javascript/guides/cloudflare/frameworks/hydrogen-react-router.mdx @@ -85,9 +85,9 @@ import { hydrateRoot } from "react-dom/client"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance @@ -164,9 +164,9 @@ import * as Sentry from "@sentry/react-router"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ logs // Enable logs to be sent to Sentry @@ -218,8 +218,9 @@ export default { // ___PRODUCT_OPTION_START___ logs enableLogs: true, // ___PRODUCT_OPTION_END___ logs - // To disable sending user data, uncomment the line below: - // dataCollection: { userInfo: false }, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, }, request: request as any, context: executionContext, diff --git a/docs/platforms/javascript/guides/cloudflare/frameworks/tanstack-start.mdx b/docs/platforms/javascript/guides/cloudflare/frameworks/tanstack-start.mdx index 1ca9e43227200..aa5ffcc191f5b 100644 --- a/docs/platforms/javascript/guides/cloudflare/frameworks/tanstack-start.mdx +++ b/docs/platforms/javascript/guides/cloudflare/frameworks/tanstack-start.mdx @@ -85,9 +85,9 @@ export default Sentry.withSentry( () => ({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ logs // Enable logs to be sent to Sentry @@ -153,9 +153,9 @@ export const getRouter = () => { + Sentry.init({ + dsn: "___PUBLIC_DSN___", + -+ // To disable sending user data, uncomment the line below. For more info visit: ++ // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/configuration/options/#dataCollection -+ // dataCollection: { userInfo: false }, ++ // dataCollection: { userInfo: false, httpBodies: [] }, + + integrations: [ + // ___PRODUCT_OPTION_START___ performance diff --git a/docs/platforms/javascript/guides/cloudflare/index.mdx b/docs/platforms/javascript/guides/cloudflare/index.mdx index b1d7e324419cf..d1553d4d2cc0c 100644 --- a/docs/platforms/javascript/guides/cloudflare/index.mdx +++ b/docs/platforms/javascript/guides/cloudflare/index.mdx @@ -97,9 +97,9 @@ export const onRequest = [ Sentry.sentryPagesPlugin((context) => ({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ logs // Enable logs to be sent to Sentry diff --git a/docs/platforms/javascript/guides/cordova/index.mdx b/docs/platforms/javascript/guides/cordova/index.mdx index 553eb19823c0b..4bd6e7c619666 100644 --- a/docs/platforms/javascript/guides/cordova/index.mdx +++ b/docs/platforms/javascript/guides/cordova/index.mdx @@ -88,9 +88,9 @@ onDeviceReady: function() { Sentry.init({ dsn: '___PUBLIC_DSN___', - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/cordova/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/cordova/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, }); } ``` diff --git a/docs/platforms/javascript/guides/deno/index.mdx b/docs/platforms/javascript/guides/deno/index.mdx index 1a5e968d3eb22..65461b5460b71 100644 --- a/docs/platforms/javascript/guides/deno/index.mdx +++ b/docs/platforms/javascript/guides/deno/index.mdx @@ -69,9 +69,9 @@ import * as Sentry from "___SDK_PACKAGE___"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/deno/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% diff --git a/docs/platforms/javascript/guides/elysia/index.mdx b/docs/platforms/javascript/guides/elysia/index.mdx index 7fd53fe844503..70fda936229b4 100644 --- a/docs/platforms/javascript/guides/elysia/index.mdx +++ b/docs/platforms/javascript/guides/elysia/index.mdx @@ -85,9 +85,9 @@ import { Elysia } from "elysia"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/elysia/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% @@ -117,9 +117,9 @@ import { node } from "@elysiajs/node"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/elysia/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% diff --git a/docs/platforms/javascript/guides/ember/index.mdx b/docs/platforms/javascript/guides/ember/index.mdx index bb8d4efd7a303..788eccf9ea16f 100644 --- a/docs/platforms/javascript/guides/ember/index.mdx +++ b/docs/platforms/javascript/guides/ember/index.mdx @@ -68,9 +68,9 @@ import * as Sentry from "@sentry/ember"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/ember/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ session-replay integrations: [ diff --git a/docs/platforms/javascript/guides/firebase/index.mdx b/docs/platforms/javascript/guides/firebase/index.mdx index b3a9662a70232..734013cbbc07c 100644 --- a/docs/platforms/javascript/guides/firebase/index.mdx +++ b/docs/platforms/javascript/guides/firebase/index.mdx @@ -101,9 +101,9 @@ const Sentry = require("@sentry/node"); Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/firebase/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Add Tracing by setting tracesSampleRate diff --git a/docs/platforms/javascript/guides/gatsby/index.mdx b/docs/platforms/javascript/guides/gatsby/index.mdx index 18add4ba68d4c..47fb048c4bf06 100644 --- a/docs/platforms/javascript/guides/gatsby/index.mdx +++ b/docs/platforms/javascript/guides/gatsby/index.mdx @@ -119,9 +119,9 @@ import * as Sentry from "@sentry/gatsby"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/gatsby/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance diff --git a/docs/platforms/javascript/guides/hono/index.mdx b/docs/platforms/javascript/guides/hono/index.mdx index a1ea9e4166010..b11db1f4bc680 100644 --- a/docs/platforms/javascript/guides/hono/index.mdx +++ b/docs/platforms/javascript/guides/hono/index.mdx @@ -170,9 +170,9 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/hono/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [nodeProfilingIntegration()], @@ -251,9 +251,9 @@ app.use( sentry(app, { dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/hono/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% @@ -297,9 +297,9 @@ app.use( sentry(app, { dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/hono/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% diff --git a/docs/platforms/javascript/guides/nextjs/index.mdx b/docs/platforms/javascript/guides/nextjs/index.mdx index 627507ac35ba5..768dcda45e97f 100644 --- a/docs/platforms/javascript/guides/nextjs/index.mdx +++ b/docs/platforms/javascript/guides/nextjs/index.mdx @@ -62,9 +62,9 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1, // ___PRODUCT_OPTION_END___ performance @@ -89,9 +89,9 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1, // ___PRODUCT_OPTION_END___ performance @@ -107,9 +107,9 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance tracesSampleRate: process.env.NODE_ENV === "development" ? 1.0 : 0.1, // ___PRODUCT_OPTION_END___ performance diff --git a/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx b/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx index db05f36fbcf8c..197e8cf19bebc 100644 --- a/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx +++ b/docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx @@ -132,8 +132,9 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below - // dataCollection: { userInfo: false }, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Capture 100% in dev, 10% in production @@ -176,8 +177,9 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below - // dataCollection: { userInfo: false }, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Capture 100% in dev, 10% in production @@ -198,8 +200,9 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below - // dataCollection: { userInfo: false }, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Capture 100% in dev, 10% in production diff --git a/docs/platforms/javascript/guides/nextjs/manual-setup/pages-router.mdx b/docs/platforms/javascript/guides/nextjs/manual-setup/pages-router.mdx index eafbfc4031803..0fa08f9ce55cf 100644 --- a/docs/platforms/javascript/guides/nextjs/manual-setup/pages-router.mdx +++ b/docs/platforms/javascript/guides/nextjs/manual-setup/pages-router.mdx @@ -156,9 +156,9 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Capture 100% in dev, 10% in production @@ -191,9 +191,9 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Capture 100% in dev, 10% in production @@ -214,9 +214,9 @@ import * as Sentry from "@sentry/nextjs"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Capture 100% in dev, 10% in production diff --git a/docs/platforms/javascript/guides/nitro/index.mdx b/docs/platforms/javascript/guides/nitro/index.mdx index 3dc6108e3c795..ac3e365adc947 100644 --- a/docs/platforms/javascript/guides/nitro/index.mdx +++ b/docs/platforms/javascript/guides/nitro/index.mdx @@ -141,9 +141,9 @@ import * as Sentry from "@sentry/nitro"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/nitro/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% diff --git a/docs/platforms/javascript/guides/react-router/index.mdx b/docs/platforms/javascript/guides/react-router/index.mdx index 71e7657a8c8b0..f38445fa08740 100644 --- a/docs/platforms/javascript/guides/react-router/index.mdx +++ b/docs/platforms/javascript/guides/react-router/index.mdx @@ -114,9 +114,9 @@ import { HydratedRouter } from "react-router/dom"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance @@ -199,9 +199,9 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ logs // Enable logs to be sent to Sentry diff --git a/docs/platforms/javascript/guides/react-router/manual-setup.mdx b/docs/platforms/javascript/guides/react-router/manual-setup.mdx index 59d7201555566..2643979fa4255 100644 --- a/docs/platforms/javascript/guides/react-router/manual-setup.mdx +++ b/docs/platforms/javascript/guides/react-router/manual-setup.mdx @@ -129,9 +129,9 @@ The `sentryOnError` handler integrates with React Router's [`onError` hook](http +Sentry.init({ + dsn: "___PUBLIC_DSN___", + -+ // To disable sending user data, uncomment the line below. For more info visit: ++ // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#dataCollection -+ // dataCollection: { userInfo: false }, ++ // dataCollection: { userInfo: false, httpBodies: [] }, + + integrations: [ + // ___PRODUCT_OPTION_START___ performance @@ -260,9 +260,9 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/react-router/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ logs // Enable logs to be sent to Sentry diff --git a/docs/platforms/javascript/guides/react/index.mdx b/docs/platforms/javascript/guides/react/index.mdx index 97c8be0b9b946..0572c03c8ff6a 100644 --- a/docs/platforms/javascript/guides/react/index.mdx +++ b/docs/platforms/javascript/guides/react/index.mdx @@ -77,9 +77,9 @@ import * as Sentry from "@sentry/react"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/react/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance diff --git a/docs/platforms/javascript/guides/solid/index.mdx b/docs/platforms/javascript/guides/solid/index.mdx index 85fafcacb4d39..b4b3526b4167f 100644 --- a/docs/platforms/javascript/guides/solid/index.mdx +++ b/docs/platforms/javascript/guides/solid/index.mdx @@ -85,9 +85,9 @@ if (!DEV) { Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/solid/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance diff --git a/docs/platforms/javascript/guides/solidstart/index.mdx b/docs/platforms/javascript/guides/solidstart/index.mdx index f8eb751f7a0b3..5de754dc0f999 100644 --- a/docs/platforms/javascript/guides/solidstart/index.mdx +++ b/docs/platforms/javascript/guides/solidstart/index.mdx @@ -101,9 +101,9 @@ import { mount, StartClient } from "@solidjs/start/client"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/solidstart/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance // add solidRouterBrowserTracingIntegration if you're using Solid Router @@ -168,9 +168,9 @@ import * as Sentry from "@sentry/solidstart"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/solidstart/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% diff --git a/docs/platforms/javascript/guides/svelte/index.mdx b/docs/platforms/javascript/guides/svelte/index.mdx index 74af7ba4a9e32..2e4fdc068b2b9 100644 --- a/docs/platforms/javascript/guides/svelte/index.mdx +++ b/docs/platforms/javascript/guides/svelte/index.mdx @@ -78,9 +78,9 @@ import * as Sentry from "@sentry/svelte"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/svelte/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance diff --git a/docs/platforms/javascript/guides/tanstackstart-react/manual-setup/index.mdx b/docs/platforms/javascript/guides/tanstackstart-react/manual-setup/index.mdx index 5d763ef7558e1..6e08568f92e7a 100644 --- a/docs/platforms/javascript/guides/tanstackstart-react/manual-setup/index.mdx +++ b/docs/platforms/javascript/guides/tanstackstart-react/manual-setup/index.mdx @@ -92,9 +92,9 @@ import * as Sentry from "@sentry/tanstackstart-react"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ session-replay @@ -216,9 +216,9 @@ import * as Sentry from "@sentry/tanstackstart-react"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/tanstackstart-react/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ logs // Enable logs to be sent to Sentry diff --git a/docs/platforms/javascript/guides/vue/index.mdx b/docs/platforms/javascript/guides/vue/index.mdx index 619fe0c4c941e..f85b8d3780af1 100644 --- a/docs/platforms/javascript/guides/vue/index.mdx +++ b/docs/platforms/javascript/guides/vue/index.mdx @@ -85,9 +85,9 @@ Sentry.init({ app, dsn: "___PUBLIC_DSN___", - // To disable sending user data, uncomment the line below. For more info visit: + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: // https://docs.sentry.io/platforms/javascript/guides/vue/configuration/options/#dataCollection - // dataCollection: { userInfo: false }, + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance diff --git a/platform-includes/getting-started-complete/javascript.astro.mdx b/platform-includes/getting-started-complete/javascript.astro.mdx index 9e20f8fddc0f6..a7dd6dbeea142 100644 --- a/platform-includes/getting-started-complete/javascript.astro.mdx +++ b/platform-includes/getting-started-complete/javascript.astro.mdx @@ -131,9 +131,9 @@ import handler from "@astrojs/cloudflare/entrypoints/server"; export default Sentry.withSentry( (env) => ({ dsn: env.SENTRY_DSN, - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/astro/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/astro/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Define how likely traces are sampled. Adjust this value in production, // or use tracesSampler for greater control. @@ -224,9 +224,9 @@ import * as Sentry from "@sentry/astro"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/astro/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/astro/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance @@ -330,9 +330,9 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/astro/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/astro/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [ diff --git a/platform-includes/getting-started-complete/javascript.nuxt.mdx b/platform-includes/getting-started-complete/javascript.nuxt.mdx index 8a1234b3cf3d8..f9c8be0e9a0f8 100644 --- a/platform-includes/getting-started-complete/javascript.nuxt.mdx +++ b/platform-includes/getting-started-complete/javascript.nuxt.mdx @@ -101,9 +101,9 @@ Sentry.init({ // modify depending on your custom runtime config dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ session-replay // Replay may only be enabled for the client-side diff --git a/platform-includes/getting-started-complete/javascript.remix.mdx b/platform-includes/getting-started-complete/javascript.remix.mdx index d0747ce2c39cc..a8d2bcbbf9e08 100644 --- a/platform-includes/getting-started-complete/javascript.remix.mdx +++ b/platform-includes/getting-started-complete/javascript.remix.mdx @@ -19,9 +19,9 @@ import { useEffect } from "react"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/remix/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/remix/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ // ___PRODUCT_OPTION_START___ performance @@ -173,9 +173,9 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: and captures action formData attributes - // https://docs.sentry.io/platforms/javascript/guides/remix/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/remix/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling // Add our Profiling integration @@ -283,9 +283,9 @@ export const onRequest = [ Sentry.sentryPagesPlugin((context) => ({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: and captures action formData attributes - // https://docs.sentry.io/platforms/javascript/guides/remix/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/remix/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% diff --git a/platform-includes/getting-started-complete/javascript.sveltekit.mdx b/platform-includes/getting-started-complete/javascript.sveltekit.mdx index 798e4ae83e946..ba4dfd1fe1968 100644 --- a/platform-includes/getting-started-complete/javascript.sveltekit.mdx +++ b/platform-includes/getting-started-complete/javascript.sveltekit.mdx @@ -130,9 +130,9 @@ import * as Sentry from "@sentry/sveltekit"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/sveltekit/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/sveltekit/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% @@ -246,9 +246,9 @@ import * as Sentry from "@sentry/sveltekit"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/sveltekit/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/sveltekit/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% @@ -329,9 +329,9 @@ export const handle = sequence( initCloudflareSentryHandle({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/sveltekit/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/sveltekit/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ performance // Set tracesSampleRate to 1.0 to capture 100% diff --git a/platform-includes/getting-started-config/javascript.aws-lambda.mdx b/platform-includes/getting-started-config/javascript.aws-lambda.mdx index afc8949f4952a..20015c2a04a50 100644 --- a/platform-includes/getting-started-config/javascript.aws-lambda.mdx +++ b/platform-includes/getting-started-config/javascript.aws-lambda.mdx @@ -7,9 +7,9 @@ const { nodeProfilingIntegration } = require("@sentry/profiling-node"); Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/aws-lambda/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/aws-lambda/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [nodeProfilingIntegration()], @@ -46,9 +46,9 @@ const { nodeProfilingIntegration } = require("@sentry/profiling-node"); Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/aws-lambda/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/aws-lambda/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [nodeProfilingIntegration()], diff --git a/platform-includes/getting-started-config/javascript.capacitor.mdx b/platform-includes/getting-started-config/javascript.capacitor.mdx index 7d201c0b99fa6..b69af54b34033 100644 --- a/platform-includes/getting-started-config/javascript.capacitor.mdx +++ b/platform-includes/getting-started-config/javascript.capacitor.mdx @@ -6,9 +6,9 @@ Sentry.init( { dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // Set your release version, such as "getsentry@1.0.0" release: "my-project-name@", @@ -95,9 +95,9 @@ Sentry.init( { dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // Set your release version, such as "getsentry@1.0.0" release: "my-project-name@", @@ -180,9 +180,9 @@ Sentry.init( { dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // Set your release version, such as "getsentry@1.0.0" release: "my-project-name@", @@ -258,9 +258,9 @@ Sentry.init( }, }, - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // Set your release version, such as "getsentry@1.0.0" release: "my-project-name@", @@ -324,9 +324,9 @@ import * as SentryNuxt from "@sentry/nuxt"; Sentry.init( { dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // Set your release version, such as "getsentry@1.0.0" release: "my-project-name@", @@ -392,9 +392,9 @@ import { feedbackIntegration } from "@sentry/browser"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/capacitor/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // Set your release version, such as "getsentry@1.0.0" release: "my-project-name@", diff --git a/platform-includes/getting-started-config/javascript.cloudflare.hono.mdx b/platform-includes/getting-started-config/javascript.cloudflare.hono.mdx index 6eefcd568ccbf..08aa672cc10f4 100644 --- a/platform-includes/getting-started-config/javascript.cloudflare.hono.mdx +++ b/platform-includes/getting-started-config/javascript.cloudflare.hono.mdx @@ -20,9 +20,9 @@ export default Sentry.withSentry( (env: Env) => ({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ logs // Enable logs to be sent to Sentry diff --git a/platform-includes/getting-started-config/javascript.cloudflare.workers.mdx b/platform-includes/getting-started-config/javascript.cloudflare.workers.mdx index 010fe0633cab5..88e85f8ab3884 100644 --- a/platform-includes/getting-started-config/javascript.cloudflare.workers.mdx +++ b/platform-includes/getting-started-config/javascript.cloudflare.workers.mdx @@ -14,9 +14,9 @@ export default Sentry.withSentry( (env: Env) => ({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ logs // Enable logs to be sent to Sentry diff --git a/platform-includes/getting-started-config/javascript.gcp-functions.mdx b/platform-includes/getting-started-config/javascript.gcp-functions.mdx index 43a958d735174..9fbb0ba93b40e 100644 --- a/platform-includes/getting-started-config/javascript.gcp-functions.mdx +++ b/platform-includes/getting-started-config/javascript.gcp-functions.mdx @@ -7,9 +7,9 @@ const { nodeProfilingIntegration } = require("@sentry/profiling-node"); Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/gcp-functions/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/gcp-functions/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [ diff --git a/platform-includes/getting-started-config/javascript.hono.mdx b/platform-includes/getting-started-config/javascript.hono.mdx index db40f1a99a682..e153802308772 100644 --- a/platform-includes/getting-started-config/javascript.hono.mdx +++ b/platform-includes/getting-started-config/javascript.hono.mdx @@ -8,9 +8,9 @@ const { nodeProfilingIntegration } = require("@sentry/profiling-node"); Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/hono/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/hono/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [ @@ -52,9 +52,9 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/hono/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/hono/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [ diff --git a/platform-includes/getting-started-config/javascript.mdx b/platform-includes/getting-started-config/javascript.mdx index 803d21bdebf09..4b90e1f995529 100644 --- a/platform-includes/getting-started-config/javascript.mdx +++ b/platform-includes/getting-started-config/javascript.mdx @@ -16,9 +16,9 @@ import * as Sentry from "___SDK_PACKAGE___"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // Alternatively, use `process.env.npm_package_version` for a dynamic release version // if your build tool supports it. @@ -77,9 +77,9 @@ Sentry.init({ Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // Alternatively, use `process.env.npm_package_version` for a dynamic release version // if your build tool supports it. @@ -140,9 +140,9 @@ Sentry.init({ Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // Alternatively, use `process.env.npm_package_version` for a dynamic release version // if your build tool supports it. diff --git a/platform-includes/getting-started-config/javascript.node.mdx b/platform-includes/getting-started-config/javascript.node.mdx index b71b1861c308b..f939129e7abef 100644 --- a/platform-includes/getting-started-config/javascript.node.mdx +++ b/platform-includes/getting-started-config/javascript.node.mdx @@ -8,9 +8,9 @@ const { nodeProfilingIntegration } = require("@sentry/profiling-node"); Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/node/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/node/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [ @@ -52,9 +52,9 @@ import { nodeProfilingIntegration } from "@sentry/profiling-node"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/node/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/node/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, // ___PRODUCT_OPTION_START___ profiling integrations: [ diff --git a/platform-includes/performance/configure-sample-rate/javascript.solid.mdx b/platform-includes/performance/configure-sample-rate/javascript.solid.mdx index 6af5c4c9ed90f..e941bf51b4734 100644 --- a/platform-includes/performance/configure-sample-rate/javascript.solid.mdx +++ b/platform-includes/performance/configure-sample-rate/javascript.solid.mdx @@ -6,9 +6,9 @@ import { render } from "solid-js/web"; Sentry.init({ dsn: "___PUBLIC_DSN___", - // Adds request headers and IP for users, for more info visit: - // https://docs.sentry.io/platforms/javascript/guides/solid/configuration/options/#sendDefaultPii - sendDefaultPii: true, + // To disable sending user data and HTTP bodies, uncomment the line below. For more info visit: + // https://docs.sentry.io/platforms/javascript/guides/solid/configuration/options/#dataCollection + // dataCollection: { userInfo: false, httpBodies: [] }, integrations: [ solidRouterBrowserTracingIntegration(), @@ -27,4 +27,4 @@ Sentry.init({ /^https:\/\/yourserver\.io\/api/, ], }); -``` \ No newline at end of file +```