diff --git a/static/app/components/onboarding/gettingStartedDoc/types.ts b/static/app/components/onboarding/gettingStartedDoc/types.ts
index 59b4830fbac2c2..32c1a68f1a7462 100644
--- a/static/app/components/onboarding/gettingStartedDoc/types.ts
+++ b/static/app/components/onboarding/gettingStartedDoc/types.ts
@@ -34,6 +34,10 @@ export type SelectedPlatformOptions<
[key in keyof PlatformOptions]: PlatformOptions[key]['items'][number]['value'];
};
+export enum DocsPageLocation {
+ PROFILING_PAGE = 1,
+}
+
export interface DocsParams<
PlatformOptions extends BasePlatformOptions = BasePlatformOptions,
> {
@@ -48,6 +52,10 @@ export interface DocsParams<
projectId: Project['id'];
projectSlug: Project['slug'];
sourcePackageRegistries: {isLoading: boolean; data?: ReleaseRegistrySdk};
+ /**
+ * The page where the docs are being displayed
+ */
+ docsLocation?: DocsPageLocation;
feedbackOptions?: {
email?: boolean;
name?: boolean;
diff --git a/static/app/components/profiling/profilingOnboardingSidebar.tsx b/static/app/components/profiling/profilingOnboardingSidebar.tsx
index cf3a6ea47eb257..37756f4a5911f7 100644
--- a/static/app/components/profiling/profilingOnboardingSidebar.tsx
+++ b/static/app/components/profiling/profilingOnboardingSidebar.tsx
@@ -7,7 +7,10 @@ import IdBadge from 'sentry/components/idBadge';
import LoadingError from 'sentry/components/loadingError';
import LoadingIndicator from 'sentry/components/loadingIndicator';
import {Step} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {DocsParams} from 'sentry/components/onboarding/gettingStartedDoc/types';
+import {
+ DocsPageLocation,
+ type DocsParams,
+} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {useLoadGettingStarted} from 'sentry/components/onboarding/gettingStartedDoc/utils/useLoadGettingStarted';
import {ProductSolution} from 'sentry/components/onboarding/productSelection';
import {TaskSidebar} from 'sentry/components/sidebar/taskSidebar';
@@ -275,6 +278,10 @@ function ProfilingOnboardingContent(props: ProfilingOnboardingContentProps) {
platformOptions: PROFILING_ONBOARDING_STEPS,
newOrg: false,
feedbackOptions: {},
+ /**
+ * Page where the docs will be rendered
+ */
+ docsLocation: DocsPageLocation.PROFILING_PAGE,
};
const steps = [
diff --git a/static/app/gettingStartedDocs/python/aiohttp.tsx b/static/app/gettingStartedDocs/python/aiohttp.tsx
index 3f9d4bd281ceef..6e179f53719b2f 100644
--- a/static/app/gettingStartedDocs/python/aiohttp.tsx
+++ b/static/app/gettingStartedDocs/python/aiohttp.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
@@ -55,15 +56,16 @@ const onboarding: OnboardingConfig = {
}),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/asgi.tsx b/static/app/gettingStartedDocs/python/asgi.tsx
index 3d1d2f3d19a838..1c254dd8ba569a 100644
--- a/static/app/gettingStartedDocs/python/asgi.tsx
+++ b/static/app/gettingStartedDocs/python/asgi.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import {crashReportOnboardingPython} from 'sentry/gettingStartedDocs/python/python';
@@ -81,15 +82,16 @@ const onboarding: OnboardingConfig = {
}),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/awslambda.tsx b/static/app/gettingStartedDocs/python/awslambda.tsx
index bfe7e0295f41b8..7bcd9bd85e77b8 100644
--- a/static/app/gettingStartedDocs/python/awslambda.tsx
+++ b/static/app/gettingStartedDocs/python/awslambda.tsx
@@ -3,10 +3,11 @@ import styled from '@emotion/styled';
import Alert from 'sentry/components/alert';
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import {crashReportOnboardingPython} from 'sentry/gettingStartedDocs/python/python';
@@ -68,15 +69,16 @@ const onboarding: OnboardingConfig = {
description: tct('Install our Python SDK using [code:pip]:', {code:
}),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/bottle.tsx b/static/app/gettingStartedDocs/python/bottle.tsx
index e681836b59af24..ea33a62c8b2275 100644
--- a/static/app/gettingStartedDocs/python/bottle.tsx
+++ b/static/app/gettingStartedDocs/python/bottle.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
@@ -54,15 +55,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/celery.tsx b/static/app/gettingStartedDocs/python/celery.tsx
index e2c57a279f99d5..834376d8be4133 100644
--- a/static/app/gettingStartedDocs/python/celery.tsx
+++ b/static/app/gettingStartedDocs/python/celery.tsx
@@ -5,10 +5,11 @@ import Alert from 'sentry/components/alert';
import {CodeSnippet} from 'sentry/components/codeSnippet';
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import {crashReportOnboardingPython} from 'sentry/gettingStartedDocs/python/python';
@@ -57,15 +58,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/chalice.tsx b/static/app/gettingStartedDocs/python/chalice.tsx
index b478a3585fc5b9..f448c484b9d2ad 100644
--- a/static/app/gettingStartedDocs/python/chalice.tsx
+++ b/static/app/gettingStartedDocs/python/chalice.tsx
@@ -1,8 +1,9 @@
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import {crashReportOnboardingPython} from 'sentry/gettingStartedDocs/python/python';
@@ -63,15 +64,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/django.tsx b/static/app/gettingStartedDocs/python/django.tsx
index d718292c2bc797..ae9c14b0080357 100644
--- a/static/app/gettingStartedDocs/python/django.tsx
+++ b/static/app/gettingStartedDocs/python/django.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
@@ -38,7 +39,7 @@ sentry_sdk.init(
`;
const onboarding: OnboardingConfig = {
- install: () => [
+ install: (params: Params) => [
{
type: StepType.INSTALL,
description: tct('Install [code:sentry-sdk] from PyPI:', {
@@ -46,6 +47,16 @@ const onboarding: OnboardingConfig = {
}),
configurations: [
{
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/falcon.tsx b/static/app/gettingStartedDocs/python/falcon.tsx
index f6e3d201cc8147..e25fb4df76479d 100644
--- a/static/app/gettingStartedDocs/python/falcon.tsx
+++ b/static/app/gettingStartedDocs/python/falcon.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
@@ -55,15 +56,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/fastapi.tsx b/static/app/gettingStartedDocs/python/fastapi.tsx
index 12f465c9f28d6e..e1143836d08fe6 100644
--- a/static/app/gettingStartedDocs/python/fastapi.tsx
+++ b/static/app/gettingStartedDocs/python/fastapi.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
@@ -55,15 +56,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/flask.tsx b/static/app/gettingStartedDocs/python/flask.tsx
index 6c3af2a5923b25..fb4969b721c7e4 100644
--- a/static/app/gettingStartedDocs/python/flask.tsx
+++ b/static/app/gettingStartedDocs/python/flask.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
@@ -55,15 +56,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/gcpfunctions.tsx b/static/app/gettingStartedDocs/python/gcpfunctions.tsx
index e71cc6c96c1ef8..b3600c4717ee78 100644
--- a/static/app/gettingStartedDocs/python/gcpfunctions.tsx
+++ b/static/app/gettingStartedDocs/python/gcpfunctions.tsx
@@ -3,10 +3,11 @@ import styled from '@emotion/styled';
import Alert from 'sentry/components/alert';
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import {crashReportOnboardingPython} from 'sentry/gettingStartedDocs/python/python';
@@ -61,15 +62,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/mongo.tsx b/static/app/gettingStartedDocs/python/mongo.tsx
index 02bdfa6c9d9062..c13ce27193d6d3 100644
--- a/static/app/gettingStartedDocs/python/mongo.tsx
+++ b/static/app/gettingStartedDocs/python/mongo.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import {crashReportOnboardingPython} from 'sentry/gettingStartedDocs/python/python';
@@ -50,15 +51,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/python.tsx b/static/app/gettingStartedDocs/python/python.tsx
index fbc3a903075423..bf8900eb026c0d 100644
--- a/static/app/gettingStartedDocs/python/python.tsx
+++ b/static/app/gettingStartedDocs/python/python.tsx
@@ -1,8 +1,9 @@
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {
getCrashReportBackendInstallStep,
@@ -47,15 +48,16 @@ const onboarding: OnboardingConfig = {
}),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/quart.tsx b/static/app/gettingStartedDocs/python/quart.tsx
index fc4418fbdc4da9..8ae15630299b5b 100644
--- a/static/app/gettingStartedDocs/python/quart.tsx
+++ b/static/app/gettingStartedDocs/python/quart.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
@@ -57,15 +58,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/serverless.tsx b/static/app/gettingStartedDocs/python/serverless.tsx
index d1ad27464a4d61..687baef2953f48 100644
--- a/static/app/gettingStartedDocs/python/serverless.tsx
+++ b/static/app/gettingStartedDocs/python/serverless.tsx
@@ -2,10 +2,11 @@ import {Fragment} from 'react';
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import {crashReportOnboardingPython} from 'sentry/gettingStartedDocs/python/python';
@@ -76,15 +77,16 @@ const onboarding: OnboardingConfig = {
}),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/starlette.tsx b/static/app/gettingStartedDocs/python/starlette.tsx
index f2e52de2358e29..3ad63445c12a66 100644
--- a/static/app/gettingStartedDocs/python/starlette.tsx
+++ b/static/app/gettingStartedDocs/python/starlette.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
@@ -55,15 +56,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/tornado.tsx b/static/app/gettingStartedDocs/python/tornado.tsx
index 4ee39f0527bdea..8b31aaf0f5ee71 100644
--- a/static/app/gettingStartedDocs/python/tornado.tsx
+++ b/static/app/gettingStartedDocs/python/tornado.tsx
@@ -1,9 +1,10 @@
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import replayOnboardingJsLoader from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader';
@@ -53,15 +54,16 @@ const onboarding: OnboardingConfig = {
),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},
diff --git a/static/app/gettingStartedDocs/python/wsgi.tsx b/static/app/gettingStartedDocs/python/wsgi.tsx
index e76e7fe156a0bd..faa966b0924786 100644
--- a/static/app/gettingStartedDocs/python/wsgi.tsx
+++ b/static/app/gettingStartedDocs/python/wsgi.tsx
@@ -2,10 +2,11 @@ import {Fragment} from 'react';
import ExternalLink from 'sentry/components/links/externalLink';
import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/step';
-import type {
- Docs,
- DocsParams,
- OnboardingConfig,
+import {
+ type Docs,
+ DocsPageLocation,
+ type DocsParams,
+ type OnboardingConfig,
} from 'sentry/components/onboarding/gettingStartedDoc/types';
import {getPythonMetricsOnboarding} from 'sentry/components/onboarding/gettingStartedDoc/utils/metricsOnboarding';
import {crashReportOnboardingPython} from 'sentry/gettingStartedDocs/python/python';
@@ -88,15 +89,16 @@ const onboarding: OnboardingConfig = {
}),
configurations: [
{
- description: params.isProfilingSelected
- ? tct(
- 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
- {
- codeVersion:
,
- codePackage:
,
- }
- )
- : undefined,
+ description:
+ params.docsLocation === DocsPageLocation.PROFILING_PAGE
+ ? tct(
+ 'You need a minimum version [codeVersion:1.18.0] of the [codePackage:sentry-python] SDK for the profiling feature.',
+ {
+ codeVersion:
,
+ codePackage:
,
+ }
+ )
+ : undefined,
language: 'bash',
code: getInstallSnippet(),
},