|
4 | 4 |
|
5 | 5 | ### Various fixes & improvements |
6 | 6 |
|
7 | | -- fix(google-genai): Set agent name (#5038) by @sentrivana |
| 7 | +- Pydantic AI integration (#4906) by @constantinius |
| 8 | + |
| 9 | + Enable the new Pydantic AI integration with the code snippet below, and you can use the Sentry AI dashboards to observe your AI calls: |
| 10 | + |
| 11 | + ```python |
| 12 | + import sentry_sdk |
| 13 | + from sentry_sdk.integrations.pydantic_ai import PydanticAIIntegration |
| 14 | + sentry_sdk.init( |
| 15 | + dsn="<your-dsn>", |
| 16 | + # Set traces_sample_rate to 1.0 to capture 100% |
| 17 | + # of transactions for tracing. |
| 18 | + traces_sample_rate=1.0, |
| 19 | + # Add data like inputs and responses; |
| 20 | + # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info |
| 21 | + send_default_pii=True, |
| 22 | + integrations=[ |
| 23 | + PydanticAIIntegration(), |
| 24 | + ], |
| 25 | + ) |
| 26 | + ``` |
| 27 | +- MCP Python SDK (#4964) by @constantinius |
| 28 | + |
| 29 | + Enable the new Python MCP integration with the code snippet below: |
| 30 | + |
| 31 | + ```python |
| 32 | + import sentry_sdk |
| 33 | + from sentry_sdk.integrations.mcp import MCPIntegration |
| 34 | + sentry_sdk.init( |
| 35 | + dsn="<your-dsn>", |
| 36 | + # Set traces_sample_rate to 1.0 to capture 100% |
| 37 | + # of transactions for tracing. |
| 38 | + traces_sample_rate=1.0, |
| 39 | + # Add data like inputs and responses; |
| 40 | + # see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info |
| 41 | + send_default_pii=True, |
| 42 | + integrations=[ |
| 43 | + MCPIntegration(), |
| 44 | + ], |
| 45 | + ) |
| 46 | + ``` |
| 47 | +- fix(google-genai): Set agent name (#5038) by @constantinius |
8 | 48 | - fix(integrations): hooking into error tracing function to find out if an execute tool span should be set to error (#4986) by @constantinius |
9 | 49 | - fix(django): Improve logic for classifying cache hits and misses (#5029) by @alexander-alderman-webb |
10 | 50 | - chore(metrics): Rename \_metrics to metrics (#5035) by @alexander-alderman-webb |
11 | 51 | - fix(tracemetrics): Bump metric buffer size to 1k (#5031) by @k-fish |
12 | 52 | - fix startlette deprecation warning (#5034) by @DeoLeung |
13 | 53 | - fix(strawberry): Remove autodetection, always use sync extension (#4984) by @sentrivana |
14 | | -- ci: 🤖 Update test matrix with new releases (10/27) (#5033) by @github-actions |
15 | 54 | - build(deps): bump actions/upload-artifact from 4 to 5 (#5032) by @dependabot |
16 | | -- ci: Prepare for new major branch, remove potel-base from actions (#5003) by @sentrivana |
17 | 55 | - fix(ai): truncate messages for google genai (#4992) by @shellmayr |
18 | | -- feat(integrations): MCP Python SDK (#4964) by @constantinius |
19 | | -- feat(integrations): pydantic-ai integration (#4906) by @constantinius |
20 | 56 | - fix(ai): add message truncation to litellm (#4973) by @shellmayr |
21 | 57 | - feat(langchain): Support v1 (#4874) by @sentrivana |
22 | 58 | - ci: Run `common` test suite on Python 3.14t (#4969) by @alexander-alderman-webb |
|
25 | 61 | - tests(huggingface): Support 1.0.0rc7 (#4979) by @alexander-alderman-webb |
26 | 62 | - feat: Enable HTTP request code origin by default (#4967) by @alexander-alderman-webb |
27 | 63 | - ci: Run `common` test suite on Python 3.14 (#4896) by @sentrivana |
28 | | -- ci: 🤖 Update test matrix with new releases (10/20) (#4957) by @github-actions |
29 | 64 |
|
30 | 65 | ## 2.42.1 |
31 | 66 |
|
|
0 commit comments