Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/platforms/python/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ uv add "sentry-sdk"

Configuration should happen as **early as possible** in your application's lifecycle.



```python
import sentry_sdk

Expand Down Expand Up @@ -74,7 +72,7 @@ sentry_sdk.init(
)
```

However, in async applications, you need to call `sentry_sdk.init()` inside an `async` function to ensure async code is instrumented properly. We recommend calling `sentry_sdk.init()` at the beginning of the first `async` function you call, as demonstrated in the example below.
In async programs, it's recommended to call `sentry_sdk.init()` inside an `async` function to ensure async code is instrumented properly. If possible, we recommend calling `sentry_sdk.init()` at the beginning of the first `async` function you call.

```python
import asyncio
Expand Down