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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- feat(nuxt): Set `sendDefaultPii: true` by default ([#1060](https://github.com/getsentry/sentry-wizard/pull/1060))
- feat(cocoa): Add structured logs opt-in option ([#1051](https://github.com/getsentry/sentry-wizard/pull/1051))
- feat(electron): Show `sendDefaultPii: true` inside `Sentry.init` example ([#1062](https://github.com/getsentry/sentry-wizard/pull/1062))
- feat(flutter): Add structured logs opt-in #1050 ([#1050](https://github.com/getsentry/sentry-wizard/pull/1050))
Expand Down
5 changes: 4 additions & 1 deletion e2e-tests/test-applications/nuxt-4-test-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,8 @@
"nuxt": "3.15.0",
"vue": "latest",
"vue-router": "latest"
},
"resolutions": {
Copy link
Member

Choose a reason for hiding this comment

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

do we need this for the test app to run? just curious, no action required

"@vercel/nft": "^0.27.4"
}
}
}
6 changes: 6 additions & 0 deletions e2e-tests/tests/nuxt-3.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ function testNuxtProjectConfigs(projectDir: string) {
' integrations: [Sentry.replayIntegration()],',
' // Enable logs to be sent to Sentry',
' enableLogs: true,',
` // Enable sending of user PII (Personally Identifiable Information)`,
' // https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii',
' sendDefaultPii: true,',
" // Setting this option to true will print useful information to the console while you're setting up Sentry.",
' debug: false,',
'});',
Expand All @@ -184,6 +187,9 @@ function testNuxtProjectConfigs(projectDir: string) {
' tracesSampleRate: 1.0,',
' // Enable logs to be sent to Sentry',
' enableLogs: true,',
' // Enable sending of user PII (Personally Identifiable Information)',
' // https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii',
' sendDefaultPii: true,',
" // Setting this option to true will print useful information to the console while you're setting up Sentry.",
' debug: false,',
'});',
Expand Down
6 changes: 6 additions & 0 deletions e2e-tests/tests/nuxt-4.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ function testNuxtProjectConfigs(projectDir: string) {
' integrations: [Sentry.replayIntegration()],',
' // Enable logs to be sent to Sentry',
' enableLogs: true,',
` // Enable sending of user PII (Personally Identifiable Information)`,
' // https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii',
' sendDefaultPii: true,',
" // Setting this option to true will print useful information to the console while you're setting up Sentry.",
' debug: false,',
'});',
Expand All @@ -183,6 +186,9 @@ function testNuxtProjectConfigs(projectDir: string) {
' tracesSampleRate: 1.0,',
' // Enable logs to be sent to Sentry',
' enableLogs: true,',
' // Enable sending of user PII (Personally Identifiable Information)',
' // https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii',
' sendDefaultPii: true,',
" // Setting this option to true will print useful information to the console while you're setting up Sentry.",
' debug: false,',
'});',
Expand Down
12 changes: 10 additions & 2 deletions src/nuxt/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ Sentry.init({
// If set up, you can use your runtime config here
// dsn: useRuntimeConfig().public.sentry.dsn,
${getConfigBody(dsn, 'client', selectedFeatures)}


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand All @@ -128,7 +132,11 @@ function getSentryServerConfigContents(

Sentry.init({
${getConfigBody(dsn, 'server', selectedFeatures)}


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand Down
60 changes: 50 additions & 10 deletions test/nuxt/templates.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ describe('Nuxt code templates', () => {

// Enable logs to be sent to Sentry
enableLogs: true,


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand Down Expand Up @@ -97,7 +101,11 @@ describe('Nuxt code templates', () => {

// Enable logs to be sent to Sentry
enableLogs: true,


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand Down Expand Up @@ -130,7 +138,11 @@ describe('Nuxt code templates', () => {

// Enable logs to be sent to Sentry
enableLogs: true,


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand Down Expand Up @@ -171,7 +183,11 @@ describe('Nuxt code templates', () => {

// If you don't want to use Session Replay, just remove the line below:
integrations: [Sentry.replayIntegration()],


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand Down Expand Up @@ -200,7 +216,11 @@ describe('Nuxt code templates', () => {

// Enable logs to be sent to Sentry
enableLogs: true,


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand All @@ -226,7 +246,11 @@ describe('Nuxt code templates', () => {
// If set up, you can use your runtime config here
// dsn: useRuntimeConfig().public.sentry.dsn,
dsn: "https://sentry.io/123",


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand Down Expand Up @@ -259,7 +283,11 @@ describe('Nuxt code templates', () => {

// Enable logs to be sent to Sentry
enableLogs: true,


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand All @@ -286,7 +314,11 @@ describe('Nuxt code templates', () => {

// Enable logs to be sent to Sentry
enableLogs: true,


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand Down Expand Up @@ -314,7 +346,11 @@ describe('Nuxt code templates', () => {
// We recommend adjusting this value in production, or using tracesSampler
// for finer control
tracesSampleRate: 1.0,


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand All @@ -338,7 +374,11 @@ describe('Nuxt code templates', () => {

Sentry.init({
dsn: "https://sentry.io/123",


// Enable sending of user PII (Personally Identifiable Information)
// https://docs.sentry.io/platforms/javascript/guides/nuxt/configuration/options/#sendDefaultPii
sendDefaultPii: true,

// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
});
Expand Down
Loading