Skip to content

Commit 32e9796

Browse files
authored
docs: Elaborate on Strawberry autodetection in changelog (#5039)
Forgot to call this out in the changelog. Fixing that.
1 parent 5f39779 commit 32e9796

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

CHANGELOG.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### Various fixes & improvements
66

77
- Pydantic AI integration (#4906) by @constantinius
8-
8+
99
Enable the new Pydantic AI integration with the code snippet below, and you can use the Sentry AI dashboards to observe your AI calls:
1010

1111
```python
@@ -25,7 +25,7 @@
2525
)
2626
```
2727
- MCP Python SDK (#4964) by @constantinius
28-
28+
2929
Enable the new Python MCP integration with the code snippet below:
3030

3131
```python
@@ -44,13 +44,26 @@
4444
],
4545
)
4646
```
47+
- fix(strawberry): Remove autodetection, always use sync extension (#4984) by @sentrivana
48+
49+
Previously, `StrawberryIntegration` would try to guess whether it should install the sync or async version of itself. This auto-detection was very brittle and could lead to us auto-enabling async code in a sync context. With this change, `StrawberryIntegration` remains an auto-enabling integration, but it'll enable the sync version by default. If you want to enable the async version, pass the option explicitly:
50+
51+
```python
52+
sentry_sdk.init(
53+
# ...
54+
integrations=[
55+
StrawberryIntegration(
56+
async_execution=True
57+
),
58+
],
59+
)
60+
```
4761
- fix(google-genai): Set agent name (#5038) by @constantinius
4862
- fix(integrations): hooking into error tracing function to find out if an execute tool span should be set to error (#4986) by @constantinius
4963
- fix(django): Improve logic for classifying cache hits and misses (#5029) by @alexander-alderman-webb
5064
- chore(metrics): Rename \_metrics to metrics (#5035) by @alexander-alderman-webb
5165
- fix(tracemetrics): Bump metric buffer size to 1k (#5031) by @k-fish
5266
- fix startlette deprecation warning (#5034) by @DeoLeung
53-
- fix(strawberry): Remove autodetection, always use sync extension (#4984) by @sentrivana
5467
- build(deps): bump actions/upload-artifact from 4 to 5 (#5032) by @dependabot
5568
- fix(ai): truncate messages for google genai (#4992) by @shellmayr
5669
- fix(ai): add message truncation to litellm (#4973) by @shellmayr
@@ -113,7 +126,7 @@
113126
### Various fixes & improvements
114127

115128
- feat: Add `concurrent.futures` patch to threading integration (#4770) by @alexander-alderman-webb
116-
129+
117130
The SDK now makes sure to automatically preserve span relationships when using `ThreadPoolExecutor`.
118131
- chore: Remove old metrics code (#4899) by @sentrivana
119132

@@ -128,7 +141,7 @@
128141

129142
- Add LiteLLM integration (#4864) by @constantinius
130143
Once you've enabled the [new LiteLLM integration](https://docs.sentry.io/platforms/python/integrations/litellm/), you can use the Sentry AI Agents Monitoring, a Sentry dashboard that helps you understand what's going on with your AI requests:
131-
144+
132145
```python
133146
import sentry_sdk
134147
from sentry_sdk.integrations.litellm import LiteLLMIntegration
@@ -151,10 +164,10 @@
151164
- Also emit spans for MCP tool calls done by the LLM (#4875) by @constantinius
152165
- Option to not trace HTTP requests based on status codes (#4869) by @alexander-alderman-webb
153166
You can now disable transactions for incoming requests with specific HTTP status codes. The [new `trace_ignore_status_codes` option](https://docs.sentry.io/platforms/python/configuration/options/#trace_ignore_status_codes) accepts a `set` of status codes as integers. If a transaction wraps a request that results in one of the provided status codes, the transaction will be unsampled.
154-
167+
155168
```python
156169
import sentry_sdk
157-
170+
158171
sentry_sdk.init(
159172
trace_ignore_status_codes={301, 302, 303, *range(305, 400), 404},
160173
)

0 commit comments

Comments
 (0)