Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
37a5f83
feat(litellm): Gate prompt/response collection on data_collection opt…
ericapisani Aug 13, 2026
2a3bd70
test(django): Drop span_streaming parametrize where the arm is inert …
ericapisani Aug 13, 2026
16b6497
feat(langgraph): Gate prompt/response collection on data_collection o…
ericapisani Aug 13, 2026
e1b6e16
ref(pydantic_ai): Split prompt gating into separate inputs/outputs co…
ericapisani Aug 13, 2026
064542d
feat(django): Add `failed_request_status_codes` (#7140)
mgaligniana Aug 13, 2026
7dde552
test(quart): Adapt to change in behavior (#7232)
sentrivana Aug 24, 2026
77180f4
fix(langchain): Use `gen_ai.tool.definitions` attribute when data col…
ericapisani Aug 24, 2026
14d2cd0
fix(openai): Gate `gen_ai.response.tool_calls` on outputs, not inputs…
ericapisani Aug 24, 2026
a4bfb12
fix(anthropic): Gate `gen_ai.response.tool_calls` on outputs, not inp…
ericapisani Aug 24, 2026
11a8b85
fix(langgraph,huggingface_hub): Gate `gen_ai.response.tool_calls` on …
ericapisani Aug 24, 2026
db311f8
fix(openai_agents): Gate `gen_ai.response.tool_calls` on outputs, not…
ericapisani Aug 24, 2026
41220c4
fix(google_genai): Gate streaming `gen_ai.response.tool_calls` on out…
ericapisani Aug 24, 2026
bcce67b
feat(wsgi): Gate request body collection on data_collection option (#…
ericapisani Aug 24, 2026
d05bb60
test(django): Add tests for data_collection gating of request body (#…
ericapisani Aug 24, 2026
e42c798
feat(tornado): Gate request body collection on data_collection option…
ericapisani Aug 24, 2026
cbcadc9
test(sanic): Add tests for data_collection gating of request body (#7…
ericapisani Aug 24, 2026
7b8a385
test(bottle): Add tests for data_collection gating of request body (#…
ericapisani Aug 24, 2026
e320318
test(pyramid): Add tests for data_collection gating of request body (…
ericapisani Aug 24, 2026
df4ec02
fix(logs): Don't stop sending auto-collected logs when `enable_logs=T…
sentrivana Aug 24, 2026
8f886ff
release: 2.68.1
sentrivana Aug 24, 2026
98f7d91
Update changelog
sentrivana Aug 24, 2026
fd74bdc
test: Access the 'type' in an event using `.get` (#7239)
ericapisani Aug 24, 2026
6f9779d
Merge branch 'release/2.68.1'
sentry-release-bot[bot] Aug 24, 2026
8a65ab4
ci: Add `httpx` dependency to tests relying on `get_model_response()`…
alexander-alderman-webb Aug 24, 2026
8108f20
ci(openai-agents): Pin `openai` version when incompatible (#7236)
alexander-alderman-webb Aug 24, 2026
0a1762b
fix(mcp): don't report stateless StreamableHTTP servers as stdio (#7224)
Snaylaker Aug 24, 2026
cf426ad
fix(openai): Check `Response.output` is a `list` before iterating (#7…
alexander-alderman-webb Aug 24, 2026
078741f
test(quart): Fix flake caused by flushing spans on segment end (#7240)
alexander-alderman-webb Aug 24, 2026
4899d4f
ci: Update test matrix with new releases (08/24) (#7228)
alexander-alderman-webb Aug 24, 2026
90ccc37
ci: Use tagged versions for `getsentry/codecov-action` (#7241)
alexander-alderman-webb Aug 24, 2026
fe54d85
chore(deps): update github workflows (#7203)
renovate[bot] Aug 24, 2026
9147b3c
fix(starlette): Set transaction name on current scope in sync handler…
mjq Aug 24, 2026
936cbd1
Merge branch 'master' into major/3.0
sentrivana Aug 25, 2026
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 @@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
python-version: 3.14

Expand All @@ -48,7 +48,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
python-version: 3.14
- name: Build Packages
Expand All @@ -73,7 +73,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
python-version: 3.14

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flaky-test-detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
# and the repo, and writes the issue body to flaky-issue-body.md.
- name: Analyze logs and summarize flaky tests
if: steps.collect.outputs.collected != '0'
uses: anthropics/claude-code-action@239e3a730883eeb5c53db12b0fc9573b3024b126 # v1.0.191
uses: anthropics/claude-code-action@c81e3bc69d1b18badbb63ba39581218f02421678 # v1.0.201
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
github_token: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-agents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-ai-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-ai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
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 @@ -56,7 +56,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: "Setup ClickHouse Server"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-flags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
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 @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-mcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-network.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
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 @@ -37,7 +37,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Install Java
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-web-1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-integrations-web-2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
enable-cache: false
- name: Mark workspace safe for git (3.7 container)
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
- name: Download coverage data
# Artifacts from the reusable test workflows live in this same run.
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
Expand All @@ -115,7 +115,7 @@ jobs:
uv run coverage combine .coverage-sentry-*
uv run coverage xml
- name: Report coverage and test results
uses: getsentry/codecov-action@66554aa51d8656c657e233a9e98bcb18e95f2c9a # main
uses: getsentry/codecov-action@eb2b4a6c4be3ecb42867043570579fa3b6879f6e # v0.3.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: coverage.xml
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 @@ -24,7 +24,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install uv
uses: astral-sh/setup-uv@ae62891fec2bb8e7d6c99fc78c9fec3a63790f8d # v10.0.0
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
with:
cache-python: true

Expand Down
35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,40 @@
# Changelog

## 2.68.1

### `enable_logs`

- (logs) Don't stop sending auto-collected logs when `enable_logs=True` by @sentrivana in [#7237](https://github.com/getsentry/sentry-python/pull/7237)

If you have `enable_logs` set to `True`, our logging integrations for the standard library logging module as well as Loguru will auto-collect logs and send them to Sentry as Sentry logs by default, preserving old behavior. Turning automatic collection off for a specific integration can still be achieved using the `capture_sentry_logs` integration option.

```python
import sentry_sdk
from sentry_sdk.integrations.logging import LoggingIntegration
from sentry_sdk.integrations.loguru import LoguruIntegration

sentry_sdk.init(
enable_logs=True,
integrations=[
LoggingIntegration(capture_sentry_logs=True),
LoguruIntegration(capture_sentry_logs=False),
],
)
```

Please note that the `enable_logs` option is deprecated and will be removed in the next major release. The `sentry_sdk.logger.X` API now works regardless of it, and auto-collection can be opted into via the `capture_sentry_logs` integration-level options, which are `False` by default, unless you have `enable_logs=True`. We've added this compatibility layer to make the transition to a `enable_logs`-free world easier.

### Bug Fixes 🐛

- (django) Add `failed_request_status_codes` by @mgaligniana in [#7140](https://github.com/getsentry/sentry-python/pull/7140)
- (anthropic) Gate `gen_ai.response.tool_calls` on outputs, not inputs by @ericapisani in [#7207](https://github.com/getsentry/sentry-python/pull/7207)
- (google_genai) Gate streaming `gen_ai.response.tool_calls` on outputs, not inputs by @ericapisani in [#7210](https://github.com/getsentry/sentry-python/pull/7210)
- (langchain) Use `gen_ai.tool.definitions` attribute when data collection is enabled by @ericapisani in [#7204](https://github.com/getsentry/sentry-python/pull/7204)
- (langgraph,huggingface_hub) Gate `gen_ai.response.tool_calls` on outputs, not inputs by @ericapisani in [#7208](https://github.com/getsentry/sentry-python/pull/7208)
- (openai) Gate `gen_ai.response.tool_calls` on outputs, not inputs by @ericapisani in [#7205](https://github.com/getsentry/sentry-python/pull/7205)
- (openai_agents) Gate `gen_ai.response.tool_calls` on outputs, not inputs by @ericapisani in [#7209](https://github.com/getsentry/sentry-python/pull/7209)


## 2.68.0

### Important
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.68.0"
release = "2.68.1"
version = ".".join(release.split(".")[:2]) # The short X.Y version.


Expand Down
17 changes: 9 additions & 8 deletions scripts/populate_tox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"anthropic": {
"package": "anthropic",
"deps": {
"*": ["pytest-asyncio"],
"*": ["pytest-asyncio", "httpx"],
"<0.50": ["httpx<0.28.0"],
# tokenizers dropped Python 3.8 support, but didn't update package metadata.
# https://github.com/huggingface/tokenizers/commit/f4c9fd7f402fc794df8f1b547a95ee5305f9fe62
Expand Down Expand Up @@ -240,7 +240,7 @@
"package": "langchain",
"integration_name": "langchain",
"deps": {
"*": ["pytest-asyncio", "openai", "tiktoken", "langchain-openai"],
"*": ["pytest-asyncio", "openai", "tiktoken", "langchain-openai", "httpx"],
"<=0.1": ["httpx<0.28.0"],
">=0.3": ["langchain-community"],
">=1.0": ["langchain-classic"],
Expand All @@ -254,7 +254,7 @@
"package": "langchain",
"integration_name": "langchain",
"deps": {
"*": ["pytest-asyncio", "openai", "langchain-openai"],
"*": ["pytest-asyncio", "openai", "langchain-openai", "httpx"],
"<=0.1": ["httpx<0.28.0"],
">=0.3": ["langchain-community"],
">=1.0": ["langchain-classic"],
Expand All @@ -274,7 +274,7 @@
"litellm": {
"package": "litellm",
"deps": {
"*": ["anthropic", "google-genai", "pytest-asyncio"],
"*": ["anthropic", "google-genai", "pytest-asyncio", "httpx"],
},
"include": "<=1.96", # https://github.com/BerriAI/litellm/issues/36384
},
Expand Down Expand Up @@ -314,7 +314,7 @@
"package": "openai",
"integration_name": "openai",
"deps": {
"*": ["pytest-asyncio", "tiktoken"],
"*": ["pytest-asyncio", "tiktoken", "httpx"],
"<1.55": ["httpx<0.28"],
},
"python": {
Expand All @@ -326,7 +326,7 @@
"package": "openai",
"integration_name": "openai",
"deps": {
"*": ["pytest-asyncio"],
"*": ["pytest-asyncio", "httpx"],
"<1.55": ["httpx<0.28"],
},
"python": {
Expand All @@ -337,8 +337,9 @@
"openai_agents": {
"package": "openai-agents",
"deps": {
"*": ["pytest-asyncio"],
"<0.18.1": ["openai<2.45.0"],
"*": ["pytest-asyncio", "httpx"],
# https://github.com/openai/openai-python/commit/f16fbbd2bd25dc1ff150b5f78dbd15ff6bab6d91 makes `cache_write_tokens` required.
"<=0.18.0": ["openai<2.45"],
},
"python": ">=3.10",
},
Expand Down
866 changes: 253 additions & 613 deletions scripts/populate_tox/package_dependencies.jsonl

Large diffs are not rendered by default.

Loading
Loading