Skip to content
Open
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
16 changes: 14 additions & 2 deletions docs/platforms/python/integrations/asyncio/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,21 @@ asyncio.run(main())

## Behavior

- All unhandled exceptions in tasks will be captured
- Every executed Task will be instrumented and show up in the performance waterfall on Sentry.io
- All unhandled exceptions in tasks will be captured.
- By default, every executed task will be instrumented and show up in the performance waterfall on Sentry.io. This behavior can be disabled by providing the `task_spans=False` flag to the `AsyncioIntegration()` or to the `enable_asyncio_integration()` helper:

```python
import sentry_sdk
from sentry_sdk.integrations.asyncio import AsyncioIntegration, enable_asyncio_integration

sentry_sdk.init(
integrations=[AsyncioIntegration(task_spans=False)],
)

# Or:

enable_asyncio_integration(task_spans=False)
```

## Troubleshooting

Expand Down