@sentry/wizard 3.30.0 → 3.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,16 +19,24 @@ const MINIMUM_DEBUG_ID_SDK_VERSION = '7.47.0';
19
19
  // that we actually detect the "top-level" SDK first.
20
20
  const SENTRY_SDK_PACKAGE_NAMES = [
21
21
  // SDKs using other framework SDKs need to be checked first
22
+ '@sentry/astro',
22
23
  '@sentry/gatsby',
23
24
  '@sentry/nextjs',
25
+ '@sentry/nuxt',
24
26
  '@sentry/remix',
27
+ '@sentry/solidstart',
25
28
  '@sentry/sveltekit',
26
29
 
27
30
  // Framework SDKs
28
31
  '@sentry/angular',
29
32
  '@sentry/angular-ivy',
33
+ '@sentry/aws-serverless',
34
+ '@sentry/bun',
30
35
  '@sentry/ember',
36
+ '@sentry/google-cloud-serverless',
37
+ '@sentry/nestjs',
31
38
  '@sentry/react',
39
+ '@sentry/solid',
32
40
  '@sentry/svelte',
33
41
  '@sentry/vue',
34
42
  '@sentry/serverless',
@@ -36,6 +44,7 @@ const SENTRY_SDK_PACKAGE_NAMES = [
36
44
  // Base SDKs
37
45
  '@sentry/browser',
38
46
  '@sentry/node',
47
+ '@sentry/deno',
39
48
  ];
40
49
 
41
50
  /**
@@ -7,7 +7,7 @@ import * as Sentry from '@sentry/node';
7
7
  import {
8
8
  abort,
9
9
  abortIfCancelled,
10
- addSentryCliConfig,
10
+ addDotEnvSentryBuildPluginFile,
11
11
  askShouldCreateExamplePage,
12
12
  confirmContinueIfNoOrDirtyGitRepo,
13
13
  ensurePackageIsInstalled,
@@ -32,6 +32,7 @@ export async function runSvelteKitWizard(
32
32
  {
33
33
  enabled: options.telemetryEnabled,
34
34
  integration: 'sveltekit',
35
+ wizardOptions: options,
35
36
  },
36
37
  () => runSvelteKitWizardWithTelemetry(options),
37
38
  );
@@ -98,7 +99,7 @@ export async function runSvelteKitWizardWithTelemetry(
98
99
  alreadyInstalled: sdkAlreadyInstalled,
99
100
  });
100
101
 
101
- await addSentryCliConfig({ authToken });
102
+ await addDotEnvSentryBuildPluginFile(authToken);
102
103
 
103
104
  const svelteConfig = await traceStep('load-svelte-config', loadSvelteConfig);
104
105
 
package/src/telemetry.ts CHANGED
@@ -11,11 +11,13 @@ import {
11
11
  flush,
12
12
  } from '@sentry/node';
13
13
  import packageJson from '../package.json';
14
+ import { WizardOptions } from './utils/types';
14
15
 
15
16
  export async function withTelemetry<F>(
16
17
  options: {
17
18
  enabled: boolean;
18
19
  integration: string;
20
+ wizardOptions: WizardOptions;
19
21
  },
20
22
  callback: () => F | Promise<F>,
21
23
  ): Promise<F> {
@@ -29,6 +31,10 @@ export async function withTelemetry<F>(
29
31
  const sentrySession = sentryHub.startSession();
30
32
  sentryHub.captureSession();
31
33
 
34
+ // Set tag for passed CLI args
35
+ sentryHub.setTag('args.project', !!options.wizardOptions.projectSlug);
36
+ sentryHub.setTag('args.org', !!options.wizardOptions.orgSlug);
37
+
32
38
  try {
33
39
  return await startSpan(
34
40
  {