Browse Source

feat(onboarding): adapt AIOHTTP onboarding to install-configure-verify structure (#81569)

Simon Hellmayr 3 months ago
parent
commit
7427650c89
1 changed files with 3 additions and 13 deletions
  1. 3 13
      static/app/gettingStartedDocs/python/aiohttp.tsx

+ 3 - 13
static/app/gettingStartedDocs/python/aiohttp.tsx

@@ -45,7 +45,7 @@ sentry_sdk.init(
           ? `
     _experiments={
         # Set continuous_profiling_auto_start to True
-        # to automatically start the profiler on when
+        # to automatically start the profiler when
         # possible.
         "continuous_profiling_auto_start": True,
     },`
@@ -107,16 +107,7 @@ const onboarding: OnboardingConfig = {
       configurations: [
         {
           language: 'python',
-          code: `
-${getSdkSetupSnippet(params)}
-async def hello(request):
-   return web.Response(text="Hello, world")
-
-app = web.Application()
-app.add_routes([web.get('/', hello)])
-
-web.run_app(app)
-`,
+          code: getSdkSetupSnippet(params),
         },
       ],
       additionalInfo: params.isProfilingSelected &&
@@ -125,7 +116,7 @@ web.run_app(app)
         ),
     },
   ],
-  verify: (params: Params) => [
+  verify: () => [
     {
       type: StepType.VERIFY,
       description: t(
@@ -136,7 +127,6 @@ web.run_app(app)
           language: 'python',
 
           code: `
-${getSdkSetupSnippet(params)}
 async def hello(request):
     1/0  # raises an error
     return web.Response(text="Hello, world")