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
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/javascript-angular/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ bootstrapApplication(appConfig, AppComponent)
params,
staticParts: [
`dsn: "${params.dsn.public}"`,
`// 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: [] }`,
],
getIntegrations,
getDynamicParts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import * as Sentry from "@sentry/astro";

Sentry.init({
dsn: "${params.dsn.public}",
// 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/astro/configuration/options/#dataCollection
// dataCollection: { userInfo: false },${logsConfig}${performanceConfig}
// dataCollection: { userInfo: false, httpBodies: [] },${logsConfig}${performanceConfig}
});
`;
}
Expand Down Expand Up @@ -81,9 +81,9 @@ import * as Sentry from "@sentry/astro";

Sentry.init({
dsn: "${params.dsn.public}",
// 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/astro/configuration/options/#dataCollection
// dataCollection: { userInfo: false },${integrationsConfig}${logsConfig}${performanceConfig}${replaySampleRates}
// dataCollection: { userInfo: false, httpBodies: [] },${integrationsConfig}${logsConfig}${performanceConfig}${replaySampleRates}
});
`;
}
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/javascript-ember/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ export function getSdkSetupSnippet(params: DocsParams) {
params,
staticParts: [
`dsn: "${params.dsn.public}"`,
`// 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: [] }`,
],
getIntegrations,
getDynamicParts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ describe('javascript-gatsby onboarding docs', () => {

expect(
screen.getByText(
textWithMarkupMatcher(/\/\/ dataCollection: \{ userInfo: false \}/)
textWithMarkupMatcher(
/\/\/ dataCollection: \{ userInfo: false, httpBodies: \[\] \}/
)
)
).toBeInTheDocument();
});
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/javascript-gatsby/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export function getSdkSetupSnippet(params: DocsParams) {
params,
staticParts: [
`dsn: "${params.dsn.public}"`,
`// 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: [] }`,
],
getIntegrations,
getDynamicParts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ import { HydratedRouter } from "react-router/dom";

Sentry.init({
dsn: "${params.dsn.public}",
// 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 },${integrationsCode}${logsSnippet}${performanceSnippet}${replaySnippet}
// dataCollection: { userInfo: false, httpBodies: [] },${integrationsCode}${logsSnippet}${performanceSnippet}${replaySnippet}
});

startTransition(() => {
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/javascript-react/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export function getSdkSetupSnippet(params: DocsParams) {
params,
staticParts: [
`dsn: "${params.dsn.public}"`,
`// 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: [] }`,
],
getIntegrations,
getDynamicParts,
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/javascript-solid/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,9 @@ export function getSdkSetupSnippet(params: DocsParams) {
params,
staticParts: [
`dsn: "${params.dsn.public}"`,
`// 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: [] }`,
],
getIntegrations,
getDynamicParts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ Sentry.init({
profileSessionSampleRate: 1.0,`
: ''
}
// 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: [] },
});
`;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ export function getSdkClientSetupSnippet(params: DocsParams) {
params,
staticParts: [
`dsn: "${params.dsn.public}"`,
`// 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: [] }`,
],
getIntegrations,
getDynamicParts,
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/javascript-svelte/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ export function getSdkSetupSnippet(params: DocsParams, isVersion5: boolean) {
params,
staticParts: [
`dsn: "${params.dsn.public}"`,
`// 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: [] }`,
],
getIntegrations,
getDynamicParts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ export const onboarding: OnboardingConfig = {
Sentry.init({
dsn: "${params.dsn.public}",

// 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: [] },${
params.isReplaySelected
? `

Expand Down Expand Up @@ -205,9 +205,9 @@ export const getRouter = () => {
Sentry.init({
dsn: "${params.dsn.public}",

// 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: [] },${
params.isPerformanceSelected
? `

Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/javascript-vue/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ function getSentryInitLayout(params: Params, siblingOption: string): string {
staticParts: [
siblingOption === VueVersion.VUE2 ? 'Vue' : 'app',
`dsn: "${params.dsn.public}"`,
`// 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: [] }`,
],
getIntegrations,
getDynamicParts,
Expand Down
8 changes: 4 additions & 4 deletions static/app/gettingStartedDocs/javascript/performance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ Sentry.init({
tracesSampleRate: 1.0,
// Set \`tracePropagationTargets\` to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ["localhost", /^https:\\/\\/yourserver\\.io\\/api/],
// 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/configuration/options/#dataCollection
// dataCollection: { userInfo: false },
// dataCollection: { userInfo: false, httpBodies: [] },
});
`,
},
Expand Down Expand Up @@ -101,9 +101,9 @@ Sentry.init({
dsn: "${params.dsn.public}",
integrations: [Sentry.browserTracingIntegration()],
tracePropagationTargets: ["localhost", /^https:\\/\\/yourserver\\.io\\/api/],
// 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/configuration/options/#dataCollection
// dataCollection: { userInfo: false },
// dataCollection: { userInfo: false, httpBodies: [] },
});
`,
},
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/javascript/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ export const getSdkSetupSnippet = (params: Params) => {
params,
staticParts: [
`dsn: "${params.dsn.public}"`,
`// 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/configuration/options/#dataCollection
// dataCollection: { userInfo: false }`,
// dataCollection: { userInfo: false, httpBodies: [] }`,
],
getIntegrations,
getDynamicParts,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ export const onRequest = [
: ''
}

// 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-pages/configuration/options/#dataCollection
// dataCollection: { userInfo: false },
// dataCollection: { userInfo: false, httpBodies: [] },
})),
// Add more middlewares here
];`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ export default Sentry.withSentry(
: ''
}

// 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: [] },
}),
{
async fetch(request, env, ctx) {
Expand Down
8 changes: 4 additions & 4 deletions static/app/gettingStartedDocs/node-hono/onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ Sentry.init({
enableLogs: true,`
: ''
}
// 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: [] },
});`;
}

Expand Down Expand Up @@ -115,9 +115,9 @@ app.use(
enableLogs: true,`
: ''
}
// 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: [] },
}),
);

Expand Down
12 changes: 6 additions & 6 deletions static/app/gettingStartedDocs/node/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ Sentry.init({
profilesSampleRate: 1.0,`
}

// 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/node/configuration/options/#dataCollection
// dataCollection: { userInfo: false },
// dataCollection: { userInfo: false, httpBodies: [] },
});${
params.profilingOptions?.defaultProfilingMode === 'continuous' &&
profilingLifecycle === 'trace'
Expand Down Expand Up @@ -360,9 +360,9 @@ Sentry.init({
dsn: "${params.dsn.public}",
// Tracing must be enabled for MCP monitoring to work
tracesSampleRate: 1.0,
// 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/node/configuration/options/#dataCollection
// dataCollection: { userInfo: false },
// dataCollection: { userInfo: false, httpBodies: [] },
});`,
},
],
Expand Down Expand Up @@ -618,9 +618,9 @@ Sentry.init({
profileLifecycle: 'trace',`
: ''
}
// 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/node/configuration/options/#dataCollection
// dataCollection: { userInfo: false },
// dataCollection: { userInfo: false, httpBodies: [] },
});${
params.isProfilingSelected &&
params.profilingOptions?.defaultProfilingMode === 'continuous'
Expand Down
4 changes: 2 additions & 2 deletions static/app/gettingStartedDocs/react-native/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ import * as Sentry from "@sentry/react-native";

Sentry.init({
dsn: "${params.dsn.public}",
// 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/react-native/configuration/options/#dataCollection
// dataCollection: { userInfo: false },${
// dataCollection: { userInfo: false, httpBodies: [] },${
params.isPerformanceSelected
? `
// Set tracesSampleRate to 1.0 to capture 100% of transactions for tracing.
Expand Down
Loading