11import { ExternalLink } from 'sentry/components/core/link' ;
22import {
33 StepType ,
4- type Docs ,
54 type DocsParams ,
65 type OnboardingConfig ,
76} from 'sentry/components/onboarding/gettingStartedDoc/types' ;
8- import {
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 { mcp } from 'sentry/gettingStartedDocs/python/python/mcp' ;
17- import {
18- alternativeProfiling ,
19- profiling ,
20- } from 'sentry/gettingStartedDocs/python/python/profiling' ;
7+ import { verify } from 'sentry/gettingStartedDocs/python/python/logs' ;
8+ import { alternativeProfiling } from 'sentry/gettingStartedDocs/python/python/profiling' ;
219import { getPythonInstallCodeBlock } from 'sentry/gettingStartedDocs/python/python/utils' ;
2210import { t , tct } from 'sentry/locale' ;
2311
24- type Params = DocsParams ;
25-
26- const getSdkSetupSnippet = ( params : Params ) => `
12+ const getSdkSetupSnippet = ( params : DocsParams ) => `
2713import sentry_sdk
2814from sentry_sdk.integrations.quart import QuartIntegration
2915from quart import Quart
@@ -68,7 +54,7 @@ sentry_sdk.init(
6854)
6955` ;
7056
71- const onboarding : OnboardingConfig = {
57+ export const onboarding : OnboardingConfig = {
7258 introduction : ( ) =>
7359 tct ( 'The Quart integration adds support for the [link:Quart Web Framework].' , {
7460 link : < ExternalLink href = "https://quart.palletsprojects.com/" /> ,
@@ -87,7 +73,7 @@ const onboarding: OnboardingConfig = {
8773 ] ,
8874 } ,
8975 ] ,
90- configure : ( params : Params ) => [
76+ configure : ( params : DocsParams ) => [
9177 {
9278 type : StepType . CONFIGURE ,
9379 content : [
@@ -109,7 +95,7 @@ app = Quart(__name__)
10995 ] ,
11096 } ,
11197 ] ,
112- verify : ( params : Params ) => [
98+ verify : ( params : DocsParams ) => [
11399 {
114100 type : StepType . VERIFY ,
115101 content : [
@@ -153,7 +139,7 @@ app.run()
153139 ] ,
154140 } ,
155141 ] ,
156- nextSteps : ( params : Params ) => {
142+ nextSteps : ( params : DocsParams ) => {
157143 const steps = [ ] as any [ ] ;
158144 if ( params . isLogsSelected ) {
159145 steps . push ( {
@@ -168,19 +154,3 @@ app.run()
168154 return steps ;
169155 } ,
170156} ;
171-
172- const docs : Docs = {
173- onboarding,
174- replayOnboardingJsLoader,
175- profilingOnboarding : profiling ( { basePackage : 'sentry-sdk[quart]' } ) ,
176- crashReportOnboarding : crashReport ,
177- featureFlagOnboarding : featureFlag ,
178- feedbackOnboardingJsLoader,
179- agentMonitoringOnboarding : agentMonitoring ,
180- mcpOnboarding : mcp ,
181- logsOnboarding : logs ( {
182- packageName : 'sentry-sdk[quart]' ,
183- } ) ,
184- } ;
185-
186- export default docs ;
0 commit comments