Skip to content

Commit 0ad9149

Browse files
committed
docs(python): Add documentation for the Python SDK Async Transport Option
1 parent 5b3f314 commit 0ad9149

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/platforms/python/configuration/options.mdx

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,22 @@ sentry_sdk.init(
320320

321321
</SdkOption>
322322

323+
<SdkOption name="transport_async" defaultValue='None'>
324+
An experimental fully async transport. Requires the asyncio integration and the [httpcore[asyncio]](https://www.encode.io/httpcore/async/) library. If enabled, the Sentry SDK has to be initialised while an event loop is running.
325+
326+
```python
327+
sentry_sdk.init(
328+
_experiments={
329+
"transport_async": True,
330+
},
331+
integrations=[
332+
AsyncioIntegration(),
333+
],
334+
)
335+
```
336+
337+
</SdkOption>
338+
323339
## Tracing Options
324340

325341
<SdkOption name="traces_sample_rate" type='float' defaultValue='None'>

0 commit comments

Comments
 (0)