Skip to content
Open
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
8 changes: 4 additions & 4 deletions docs/platforms/javascript/guides/angular/manual-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions docs/platforms/javascript/guides/aws-lambda/install/layer.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions docs/platforms/javascript/guides/aws-lambda/install/npm.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()],

Expand Down Expand Up @@ -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()],

Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/guides/azure-functions/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/guides/bun/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/guides/cloudflare/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/platforms/javascript/guides/cordova/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] },
});
}
```
Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/guides/deno/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down
8 changes: 4 additions & 4 deletions docs/platforms/javascript/guides/elysia/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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%
Expand Down Expand Up @@ -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%
Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/guides/ember/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/guides/firebase/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/guides/gatsby/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions docs/platforms/javascript/guides/hono/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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()],
Expand Down Expand Up @@ -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%
Expand Down Expand Up @@ -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%
Expand Down
12 changes: 6 additions & 6 deletions docs/platforms/javascript/guides/nextjs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
15 changes: 9 additions & 6 deletions docs/platforms/javascript/guides/nextjs/manual-setup/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading
Loading