Skip to content

Commit 27b0bfd

Browse files
authored
Update CHANGELOG.md
1 parent 73857b4 commit 27b0bfd

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,25 @@
1212
#### Other
1313

1414
- feat(asyncio): Add on-demand way to enable AsyncioIntegration by @sentrivana in [#5288](https://github.com/getsentry/sentry-python/pull/5288)
15+
16+
You can now enable the `AsyncioIntegration` on demand, after calling `sentry_sdk.init()`. This is useful in scenarios where you don't have
17+
the event loop running early on, or when you need to instrument multiple event loops.
18+
19+
```python
20+
import sentry_sdk
21+
from sentry_sdk.integrations.asyncio import enable_asyncio_integration
22+
23+
# Initializing the SDK as early as possible, when there is no event loop yet
24+
sentry_sdk.init(
25+
...
26+
# No AsyncioIntegration in explicitly provided `integrations`
27+
)
28+
29+
async def main():
30+
enable_asyncio_integration() # instruments the current event loop
31+
# ...your code...
32+
```
33+
1534
- feat(openai-agents): Inject propagation headers for `HostedMCPTool` by @alexander-alderman-webb in [#5297](https://github.com/getsentry/sentry-python/pull/5297)
1635
- feat(stdlib): Handle proxy tunnels in httlib integration by @sl0thentr0py in [#5303](https://github.com/getsentry/sentry-python/pull/5303)
1736
- feat: Support array types for logs and metrics attributes by @alexander-alderman-webb in [#5314](https://github.com/getsentry/sentry-python/pull/5314)

0 commit comments

Comments
 (0)