11import { ExternalLink } from 'sentry/components/core/link' ;
2- import type {
3- Docs ,
4- DocsParams ,
5- OnboardingConfig ,
6- } from 'sentry/components/onboarding/gettingStartedDoc/types' ;
7- import { StepType } from 'sentry/components/onboarding/gettingStartedDoc/types' ;
82import {
9- feedbackOnboardingJsLoader ,
10- replayOnboardingJsLoader ,
11- } from 'sentry/gettingStartedDocs/javascript/jsLoader/jsLoader' ;
12- import { agentMonitoring } from 'sentry/gettingStartedDocs/python/python/agentMonitoring' ;
13- import { crashReport } from 'sentry/gettingStartedDocs/python/python/crashReport' ;
14- import { featureFlag } from 'sentry/gettingStartedDocs/python/python/featureFlag' ;
15- import { logs , verify } from 'sentry/gettingStartedDocs/python/python/logs' ;
16- import { profiling } from 'sentry/gettingStartedDocs/python/python/profiling' ;
3+ StepType ,
4+ type DocsParams ,
5+ type OnboardingConfig ,
6+ } from 'sentry/components/onboarding/gettingStartedDoc/types' ;
7+ import { verify } from 'sentry/gettingStartedDocs/python/python/logs' ;
178import { getPythonInstallCodeBlock } from 'sentry/gettingStartedDocs/python/python/utils' ;
189import { t , tct } from 'sentry/locale' ;
1910
20- type Params = DocsParams ;
21-
22- const getSdkSetupSnippet = ( params : Params ) => `
11+ const getSdkSetupSnippet = ( params : DocsParams ) => `
2312from pyramid.config import Configurator
2413import sentry_sdk
2514
@@ -37,7 +26,7 @@ sentry_sdk.init(
3726)
3827` ;
3928
40- const onboarding : OnboardingConfig = {
29+ export const onboarding : OnboardingConfig = {
4130 introduction : ( ) =>
4231 tct ( 'The Pyramid integration adds support for the [link:Pyramid Web Framework].' , {
4332 link : < ExternalLink href = "https://trypyramid.com/" /> ,
@@ -56,7 +45,7 @@ const onboarding: OnboardingConfig = {
5645 ] ,
5746 } ,
5847 ] ,
59- configure : ( params : Params ) => [
48+ configure : ( params : DocsParams ) => [
6049 {
6150 type : StepType . CONFIGURE ,
6251 content : [
@@ -81,7 +70,7 @@ with Configurator() as config:
8170 ] ,
8271 } ,
8372 ] ,
84- verify : ( params : Params ) => [
73+ verify : ( params : DocsParams ) => [
8574 {
8675 type : StepType . VERIFY ,
8776 content : [
@@ -123,7 +112,7 @@ if __name__ == '__main__':
123112 ] ,
124113 } ,
125114 ] ,
126- nextSteps : ( params : Params ) => {
115+ nextSteps : ( params : DocsParams ) => {
127116 const steps = [ ] ;
128117 if ( params . isLogsSelected ) {
129118 steps . push ( {
@@ -138,16 +127,3 @@ if __name__ == '__main__':
138127 return steps ;
139128 } ,
140129} ;
141-
142- const docs : Docs = {
143- onboarding,
144- replayOnboardingJsLoader,
145- crashReportOnboarding : crashReport ,
146- featureFlagOnboarding : featureFlag ,
147- feedbackOnboardingJsLoader,
148- profilingOnboarding : profiling ( ) ,
149- agentMonitoringOnboarding : agentMonitoring ,
150- logsOnboarding : logs ( ) ,
151- } ;
152-
153- export default docs ;
0 commit comments