From 80bbf7003d5a42d2f5baff8d7f83b9ac292f7571 Mon Sep 17 00:00:00 2001 From: rahul Date: Sun, 5 Jul 2026 02:59:45 +0000 Subject: [PATCH 1/3] feat(sdk): add June 2026 release notes for python Co-Authored-By: Claude Opus 4.6 Co-Authored-By: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> --- .../changelog/2026-06-python-sdk-releases.md | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 content/changelog/2026-06-python-sdk-releases.md diff --git a/content/changelog/2026-06-python-sdk-releases.md b/content/changelog/2026-06-python-sdk-releases.md new file mode 100644 index 0000000..8199766 --- /dev/null +++ b/content/changelog/2026-06-python-sdk-releases.md @@ -0,0 +1,32 @@ +--- +title: Python SDK Releases — June 2026 +slug: 2026-06-python-sdk-releases +summary: gen_ai span streaming on by default, new aiomysql and HTTPX2 integrations, MCP SDK v2 support, and broad PII-gating improvements. +categories: + - SDK +platform: + - python +broadcastCategory: sdk_update +published: false +date: 2026-06-30 +author: rahulchhabria@sentry.io +--- + +Releases covered: **2.61.1 · 2.62.0 · 2.63.0 · 2.64.0** + +| Version | Date | Link | +|---------|------|------| +| 2.64.0 | Jun 2026 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.64.0) | +| 2.63.0 | Jun 2026 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.63.0) | +| 2.62.0 | Jun 2026 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.62.0) | +| 2.61.1 | Jun 2026 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.61.1) | + +## What changed + +- **gen_ai span streaming on by default (2.64.0):** `gen_ai` spans now stream as v2 envelope items, preventing drops on large transactions and removing size-based AI message truncation. Self-hosted users can opt out with `stream_gen_ai_spans=False`. +- **New integrations (2.62.0):** Added an `aiomysql` integration for async MySQL tracing and out-of-the-box support for HTTPX2. +- **MCP SDK v2 support (2.64.0):** The MCP integration now handles MCP SDK v2 handler signatures and the removed `request_ctx`. +- **PII gating hardened (2.64.0 · 2.63.0):** `url.full`, `url.query`, and `url.path` are now consistently gated behind `send_default_pii` across aiohttp, asyncpg, boto3, httpx, sanic, tornado, wsgi, stdlib, and ASGI integrations. +- **FastAPI fixes (2.63.0):** Fixed double-wrapping of sync handlers on FastAPI ≥ 0.137 and incorrect route paths for prefixed routers. + +_Tagged by @rahulchhabria_ From 314b88fbb6c18ef33515ec9cc7e34949f8c22753 Mon Sep 17 00:00:00 2001 From: rahul Date: Sun, 5 Jul 2026 03:13:36 +0000 Subject: [PATCH 2/3] chore: remove tagged line from python changelog entry Co-Authored-By: Claude Opus 4.6 Co-Authored-By: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> --- content/changelog/2026-06-python-sdk-releases.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/changelog/2026-06-python-sdk-releases.md b/content/changelog/2026-06-python-sdk-releases.md index 8199766..8ee9d77 100644 --- a/content/changelog/2026-06-python-sdk-releases.md +++ b/content/changelog/2026-06-python-sdk-releases.md @@ -28,5 +28,3 @@ Releases covered: **2.61.1 · 2.62.0 · 2.63.0 · 2.64.0** - **MCP SDK v2 support (2.64.0):** The MCP integration now handles MCP SDK v2 handler signatures and the removed `request_ctx`. - **PII gating hardened (2.64.0 · 2.63.0):** `url.full`, `url.query`, and `url.path` are now consistently gated behind `send_default_pii` across aiohttp, asyncpg, boto3, httpx, sanic, tornado, wsgi, stdlib, and ASGI integrations. - **FastAPI fixes (2.63.0):** Fixed double-wrapping of sync handlers on FastAPI ≥ 0.137 and incorrect route paths for prefixed routers. - -_Tagged by @rahulchhabria_ From d2e237341236c649cbcf3e9c74fdd2d3cee95aa4 Mon Sep 17 00:00:00 2001 From: Stephanie Anderson Date: Wed, 15 Jul 2026 02:03:34 +0200 Subject: [PATCH 3/3] =?UTF-8?q?Python=20SDK=20Releases=20=E2=80=94=20June?= =?UTF-8?q?=202026=20(detailed)=20(#136)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Builds on #123 with three improvements: - **Table dates**: each release now shows its actual publish date - **TL;DR**: `## What changed` → `## TL;DR` - **Prose release notes**: new section structured by craft changelog ordering (New Features → Bug Fixes; Internal omitted), synthesising all 4 releases in readable paragraphs -- [View Junior Session in Sentry](https://sentry.sentry.io/explore/conversations/slack%3AC0B7SMN7ZHD%3A1783219862.223729/?project=4510944073809921) --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 Co-authored-by: rahul Co-authored-by: Rahul Chhabria Co-authored-by: Erica Pisani --- .../changelog/2026-06-python-sdk-releases.md | 44 +++++++++++++------ 1 file changed, 31 insertions(+), 13 deletions(-) diff --git a/content/changelog/2026-06-python-sdk-releases.md b/content/changelog/2026-06-python-sdk-releases.md index 8ee9d77..8bca621 100644 --- a/content/changelog/2026-06-python-sdk-releases.md +++ b/content/changelog/2026-06-python-sdk-releases.md @@ -12,19 +12,37 @@ date: 2026-06-30 author: rahulchhabria@sentry.io --- -Releases covered: **2.61.1 · 2.62.0 · 2.63.0 · 2.64.0** +Releases covered: | Version | Date | Link | |---------|------|------| -| 2.64.0 | Jun 2026 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.64.0) | -| 2.63.0 | Jun 2026 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.63.0) | -| 2.62.0 | Jun 2026 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.62.0) | -| 2.61.1 | Jun 2026 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.61.1) | - -## What changed - -- **gen_ai span streaming on by default (2.64.0):** `gen_ai` spans now stream as v2 envelope items, preventing drops on large transactions and removing size-based AI message truncation. Self-hosted users can opt out with `stream_gen_ai_spans=False`. -- **New integrations (2.62.0):** Added an `aiomysql` integration for async MySQL tracing and out-of-the-box support for HTTPX2. -- **MCP SDK v2 support (2.64.0):** The MCP integration now handles MCP SDK v2 handler signatures and the removed `request_ctx`. -- **PII gating hardened (2.64.0 · 2.63.0):** `url.full`, `url.query`, and `url.path` are now consistently gated behind `send_default_pii` across aiohttp, asyncpg, boto3, httpx, sanic, tornado, wsgi, stdlib, and ASGI integrations. -- **FastAPI fixes (2.63.0):** Fixed double-wrapping of sync handlers on FastAPI ≥ 0.137 and incorrect route paths for prefixed routers. +| 2.64.0 | 2026-06-30 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.64.0) | +| 2.63.0 | 2026-06-16 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.63.0) | +| 2.62.0 | 2026-06-08 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.62.0) | +| 2.61.1 | 2026-06-01 | [Release notes](https://github.com/getsentry/sentry-python/releases/tag/2.61.1) | + +## TL;DR + +- `gen_ai` spans now stream as Streamed Spans by default — prevents drops on large transactions (>1000 spans) and removes size-based AI message truncation; self-hosted users can opt out with `stream_gen_ai_spans=False`. +- New `aiomysql` integration for async MySQL tracing; added automatic HTTPX2 instrumentation. +- MCP SDK v2 handler signature is now supported in the MCP integration. +- `url.full`, `url.query`, `url.path`, and `url.fragment` are now consistently gated behind `send_default_pii` across aiohttp, asyncpg, boto3, httpx, sanic, tornado, wsgi, stdlib, and ASGI integrations. +- FastAPI: fixed double-wrapping of sync handlers on FastAPI ≥ 0.137 and incorrect route paths for prefixed routers. + +## Release notes + +### New Features + +In 2.62.0 a new `aiomysql` integration lands for async MySQL query tracing — add `AioMySQLIntegration()` to your `integrations` list to enable it. The same release adds automatic HTTPX2 support: requests made through the `httpx2` package are instrumented with no extra setup required. + +2.64.0 makes `gen_ai` use streamed spans (v2) by default, rather than transaction-based spans (v1). Previously AI spans were embedded inside their parent transaction and subject to the same payload size limits; with streaming they travel as independent v2 envelope items. This means they can no longer be dropped when a transaction payload grows too large, and AI message data is no longer truncated by the SDK. Self-hosted Sentry users whose instance does not yet support streamed spans should opt out via `stream_gen_ai_spans=False`. + +Also in 2.64.0, the MCP integration now handles the handler signature introduced in MCP SDK v2, where the `request_ctx` parameter was removed. + +### Bug Fixes + +In 2.63.0, FastAPI ≥ 0.137 sync route handlers were being wrapped twice, interfering with some middleware patterns. The SDK now checks for an existing wrapper before applying its own. Additionally, transaction names for routes nested inside prefixed routers now use the effective routed path rather than the raw route string. + +2.64.0 tightens PII gating across a broad set of integrations. Multiple integrations — aiohttp, asyncpg, boto3, httpx, httpx2, pyreqwest, sanic, stdlib, starlette, tornado, wsgi, and ASGI — were including full URLs including query strings in span attributes unconditionally. `url.full`, `url.path`, `url.query`, and `url.fragment` are now only included when `send_default_pii=True`. + +In 2.62.0, the RQ integration was missing `functools.wraps()` on patched job functions, causing the wrapped function's `__name__` and other metadata to be lost. This is now preserved.