You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,25 @@
12
12
#### Other
13
13
14
14
- 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
+
15
34
- feat(openai-agents): Inject propagation headers for `HostedMCPTool` by @alexander-alderman-webb in [#5297](https://github.com/getsentry/sentry-python/pull/5297)
16
35
- feat(stdlib): Handle proxy tunnels in httlib integration by @sl0thentr0py in [#5303](https://github.com/getsentry/sentry-python/pull/5303)
17
36
- 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