Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
629cbb1
fix(ai): add message truncation to openai–agents
shellmayr Oct 21, 2025
5a16b2e
normalize data in messages
shellmayr Oct 24, 2025
0afac42
tests(huggingface): Support 1.0.0rc7 (#4979)
alexander-alderman-webb Oct 22, 2025
75d0cfe
Make logger template format safer to missing kwargs (#4981)
sl0thentr0py Oct 22, 2025
68bdbda
feat: Officially support 3.14 & run integration tests on 3.14 (#4974)
sentrivana Oct 22, 2025
b751725
ci: Run `common` test suite on Python 3.14t (#4969)
alexander-alderman-webb Oct 22, 2025
4a44dfc
feat(langchain): Support v1 (#4874)
sentrivana Oct 23, 2025
7cfd63b
fix(ai): add message truncation to litellm (#4973)
shellmayr Oct 23, 2025
f645e97
feat(integrations): pydantic-ai integration (#4906)
constantinius Oct 23, 2025
26e6b22
feat(integrations): MCP Python SDK (#4964)
constantinius Oct 23, 2025
eaa8d42
fix(ai): truncate messages for google genai (#4992)
shellmayr Oct 23, 2025
03ddc83
ci: Prepare for new major branch, remove potel-base from actions (#5003)
sentrivana Oct 24, 2025
ef02d11
build(deps): bump actions/upload-artifact from 4 to 5 (#5032)
dependabot[bot] Oct 28, 2025
7c4d41c
ci: 🤖 Update test matrix with new releases (10/27) (#5033)
github-actions[bot] Oct 28, 2025
fd32188
fix(strawberry): Remove autodetection, always use sync extension (#4984)
sentrivana Oct 28, 2025
85dbd04
fix startlette deprecation warning (#5034)
DeoLeung Oct 28, 2025
b43ad35
fix(tracemetrics): Bump metric buffer size to 1k (#5031)
k-fish Oct 28, 2025
24b8f15
chore(metrics): Rename _metrics to metrics (#5035)
alexander-alderman-webb Oct 28, 2025
02a2e13
fix(django): Improve logic for classifying cache hits and misses (#5029)
alexander-alderman-webb Oct 29, 2025
4e6b9d9
fix(integrations): hooking into error tracing function to find out if…
constantinius Oct 29, 2025
a391d62
fix(google-genai): Set agent name (#5038)
sentrivana Oct 29, 2025
2320823
release: 2.43.0
getsentry-bot Oct 29, 2025
f3b57b4
Update CHANGELOG.md
sentrivana Oct 29, 2025
2dfa9c1
docs: Elaborate on Strawberry autodetection in changelog (#5039)
sentrivana Oct 29, 2025
b6fe7d9
ci: Run integration tests on Python 3.14t (#4995)
alexander-alderman-webb Oct 29, 2025
2409cb3
fix(ai): add message truncation to openai–agents
shellmayr Oct 21, 2025
9815f2b
make tests useful
shellmayr Oct 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
# This will also trigger "make dist" that creates the Python packages
make aws-lambda-layer
- name: Upload Python Packages
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v5
with:
name: artifact-build_lambda_layer
path: |
Expand All @@ -79,7 +79,7 @@ jobs:
make apidocs
cd docs/_build && zip -r gh-pages ./

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v5
with:
name: artifact-docs
path: |
Expand All @@ -93,7 +93,7 @@ jobs:
runs-on: ubuntu-latest
needs: [build_lambda_layer, docs]
steps:
- uses: actions/upload-artifact/merge@v4
- uses: actions/upload-artifact/merge@v5
with:
# Craft expects release assets from github to be a single artifact named after the sha.
name: ${{ github.sha }}
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/test-integrations-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13"]
python-version: ["3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down Expand Up @@ -82,6 +82,10 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-litellm"
- name: Test mcp
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-mcp"
- name: Test openai-base
run: |
set -x # print commands that are executed
Expand All @@ -94,6 +98,10 @@ jobs:
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-openai_agents"
- name: Test pydantic_ai
run: |
set -x # print commands that are executed
./scripts/runtox.sh "py${{ matrix.python-version }}-pydantic_ai"
- name: Generate coverage XML (Python 3.6)
if: ${{ !cancelled() && matrix.python-version == '3.6' }}
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14"]
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-dbs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-flags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7","3.8","3.9","3.12","3.13"]
python-version: ["3.7","3.8","3.9","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-gevent.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6","3.8","3.9","3.10","3.11","3.12","3.13"]
python-version: ["3.6","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14"]
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-web-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13"]
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-integrations-web-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches:
- master
- release/**
- potel-base
- major/**
pull_request:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
Expand All @@ -29,7 +29,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14"]
python-version: ["3.6","3.7","3.8","3.9","3.10","3.11","3.12","3.13","3.14","3.14t"]
# python3.6 reached EOL and is no longer being supported on
# new versions of hosted runners on Github Actions
# ubuntu-20.04 is the last version that supported python3.6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: 3.13
python-version: 3.14t

- name: Checkout repo
uses: actions/checkout@v5.0.0
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ relay
pip-wheel-metadata
.mypy_cache
.vscode/
.claude/

# for running AWS Lambda tests using AWS SAM
sam.template.yaml
83 changes: 79 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,80 @@
# Changelog

## 2.43.0

### Various fixes & improvements

- Pydantic AI integration (#4906) by @constantinius

Enable the new Pydantic AI integration with the code snippet below, and you can use the Sentry AI dashboards to observe your AI calls:

```python
import sentry_sdk
from sentry_sdk.integrations.pydantic_ai import PydanticAIIntegration
sentry_sdk.init(
dsn="<your-dsn>",
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=1.0,
# Add data like inputs and responses;
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
send_default_pii=True,
integrations=[
PydanticAIIntegration(),
],
)
```
- MCP Python SDK (#4964) by @constantinius

Enable the new Python MCP integration with the code snippet below:

```python
import sentry_sdk
from sentry_sdk.integrations.mcp import MCPIntegration
sentry_sdk.init(
dsn="<your-dsn>",
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
traces_sample_rate=1.0,
# Add data like inputs and responses;
# see https://docs.sentry.io/platforms/python/data-management/data-collected/ for more info
send_default_pii=True,
integrations=[
MCPIntegration(),
],
)
```
- fix(strawberry): Remove autodetection, always use sync extension (#4984) by @sentrivana

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:

```python
sentry_sdk.init(
# ...
integrations=[
StrawberryIntegration(
async_execution=True
),
],
)
```
- fix(google-genai): Set agent name (#5038) by @constantinius
- fix(integrations): hooking into error tracing function to find out if an execute tool span should be set to error (#4986) by @constantinius
- fix(django): Improve logic for classifying cache hits and misses (#5029) by @alexander-alderman-webb
- chore(metrics): Rename \_metrics to metrics (#5035) by @alexander-alderman-webb
- fix(tracemetrics): Bump metric buffer size to 1k (#5031) by @k-fish
- fix startlette deprecation warning (#5034) by @DeoLeung
- build(deps): bump actions/upload-artifact from 4 to 5 (#5032) by @dependabot
- fix(ai): truncate messages for google genai (#4992) by @shellmayr
- fix(ai): add message truncation to litellm (#4973) by @shellmayr
- feat(langchain): Support v1 (#4874) by @sentrivana
- ci: Run `common` test suite on Python 3.14t (#4969) by @alexander-alderman-webb
- feat: Officially support 3.14 & run integration tests on 3.14 (#4974) by @sentrivana
- Make logger template format safer to missing kwargs (#4981) by @sl0thentr0py
- tests(huggingface): Support 1.0.0rc7 (#4979) by @alexander-alderman-webb
- feat: Enable HTTP request code origin by default (#4967) by @alexander-alderman-webb
- ci: Run `common` test suite on Python 3.14 (#4896) by @sentrivana

## 2.42.1

### Various fixes & improvements
Expand Down Expand Up @@ -51,7 +126,7 @@
### Various fixes & improvements

- feat: Add `concurrent.futures` patch to threading integration (#4770) by @alexander-alderman-webb

The SDK now makes sure to automatically preserve span relationships when using `ThreadPoolExecutor`.
- chore: Remove old metrics code (#4899) by @sentrivana

Expand All @@ -66,7 +141,7 @@

- Add LiteLLM integration (#4864) by @constantinius
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:

```python
import sentry_sdk
from sentry_sdk.integrations.litellm import LiteLLMIntegration
Expand All @@ -89,10 +164,10 @@
- Also emit spans for MCP tool calls done by the LLM (#4875) by @constantinius
- Option to not trace HTTP requests based on status codes (#4869) by @alexander-alderman-webb
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.

```python
import sentry_sdk

sentry_sdk.init(
trace_ignore_status_codes={301, 302, 303, *range(305, 400), 404},
)
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
copyright = "2019-{}, Sentry Team and Contributors".format(datetime.now().year)
author = "Sentry Team and Contributors"

release = "2.42.1"
release = "2.43.0"
version = ".".join(release.split(".")[:2]) # The short X.Y version.


Expand Down
Loading