Skip to content

Commit 5dd9027

Browse files
authored
feat(asyncio): Move alert to new troubleshooting section (#15586)
Move the Alert on the asyncio integration page to a new Troubleshooting section at the end of the page. **Preview:** https://sentry-docs-git-ivana-pythonasyncio-troubleshooting.sentry.dev/platforms/python/integrations/asyncio/ ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [x] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
1 parent 3e208fe commit 5dd9027

File tree

1 file changed

+9
-6
lines changed
  • docs/platforms/python/integrations/asyncio

1 file changed

+9
-6
lines changed

docs/platforms/python/integrations/asyncio/index.mdx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@ uv add "sentry-sdk"
1818

1919
Add `AsyncioIntegration()` to your list of `integrations`, enable tracing and be sure to call `sentry_sdk.init()` **at the beginning of the first `async` function you call**, as shown in the example below.
2020

21-
<Alert level="warning">
22-
23-
If you call `sentry_sdk.init()` outside of an `async` function in an async application, the SDK will not behave as expected.
24-
25-
</Alert>
26-
2721
<OnboardingOptionButtons
2822
options={[
2923
'error-monitoring',
@@ -91,6 +85,15 @@ asyncio.run(main())
9185
- All unhandled exceptions in tasks will be captured
9286
- Every executed Task will be instrumented and show up in the performance waterfall on Sentry.io
9387

88+
89+
## Troubleshooting
90+
91+
<Expandable title="Asyncio integration not working">
92+
93+
The SDK needs the event loop to be running when instrumenting asyncio. Make sure to call `sentry_sdk.init()` inside of an `async` function.
94+
95+
</Expandable>
96+
9497
## Supported Versions
9598

9699
- Python: 3.7+

0 commit comments

Comments
 (0)