diff --git a/docs/platforms/python/integrations/asyncio/index.mdx b/docs/platforms/python/integrations/asyncio/index.mdx index 411b43663bdc8d..4747d2a0369c1a 100644 --- a/docs/platforms/python/integrations/asyncio/index.mdx +++ b/docs/platforms/python/integrations/asyncio/index.mdx @@ -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