Browse Source

feat(fastapi-onboarding): Improve wording (#79476)

Remove init call from verify snippet.
Simplify wording in verify section.

Closes https://github.com/getsentry/sentry/issues/79185
ArthurKnaus 4 months ago
parent
commit
a608de6fd1
1 changed files with 3 additions and 8 deletions
  1. 3 8
      static/app/gettingStartedDocs/python/fastapi.tsx

+ 3 - 8
static/app/gettingStartedDocs/python/fastapi.tsx

@@ -96,7 +96,7 @@ app = FastAPI()
       ),
     },
   ],
-  verify: (params: Params) => [
+  verify: () => [
     {
       type: StepType.VERIFY,
       description: t(
@@ -105,22 +105,17 @@ app = FastAPI()
       configurations: [
         {
           language: 'python',
-
           code: `
-${getSdkSetupSnippet(params)}
-app = FastAPI()
-
 @app.get("/sentry-debug")
 async def trigger_error():
-    division_by_zero = 1 / 0
-      `,
+    division_by_zero = 1 / 0`,
         },
       ],
       additionalInfo: (
         <div>
           <p>
             {tct(
-              'When you point your browser to [link:http://localhost:8000/sentry-debug/] a transaction in the Performance section of Sentry will be created.',
+              'When you open [link:http://localhost:8000/sentry-debug/] with your browser, a transaction in the Performance section of Sentry will be created.',
               {
                 link: <ExternalLink href="http://localhost:8000/sentry-debug/" />,
               }