Skip to content

Commit

Permalink
feat(nuxt): Collect deployment platform and init-with-import-docs met…
Browse files Browse the repository at this point in the history
…ric (#749)

* feat(nuxt): Collect deployment platform metric

* Also collect if users want to open the init-with-import docs
  • Loading branch information
andreiborza authored Dec 23, 2024
1 parent e99b9e4 commit 56f30c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/nuxt/nuxt-wizard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export async function runNuxtWizardWithTelemetry(
};

const deploymentPlatform = await askDeploymentPlatform();
Sentry.setTag('deployment-platform', deploymentPlatform);

await traceStep('configure-sdk', async () => {
await addSDKModule(nuxtConfig, projectData, deploymentPlatform);
Expand Down
2 changes: 2 additions & 0 deletions src/nuxt/sdk-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ export async function confirmReadImportDocs(
clack.confirm({ message: 'Do you want to open the docs?' }),
);

Sentry.setTag('init-with-import-docs-opened', shouldOpenDocs);

if (shouldOpenDocs) {
opn(docsUrl, { wait: false }).catch(() => {
// opn throws in environments that don't have a browser (e.g. remote shells) so we just noop here
Expand Down

0 comments on commit 56f30c6

Please sign in to comment.