Repository navigation
Releases
Releases · getsentry/sentry-python
3.1.0b2
New Features ✨
- Window sample all metrics with
metrics_target_per_second=Trueby @alexander-alderman-webb in #8428 - Dual window for metrics with sampled spans by @alexander-alderman-webb in #8427
Internal Changes 🔧
- (metrics) Drop negatively sampled metrics immediately by @alexander-alderman-webb with @sentry-release-bot in #8425
3.1.0b1
New Features ✨
- Add per-metric windows to lock free metrics batcher by @alexander-alderman-webb with @sentry-release-bot in #8327
- Add basic lock-free metrics batcher by @alexander-alderman-webb and @claude in #8326
Internal Changes 🔧
- (deps) Lock file maintenance by @renovate in #8421
- (mcp) Remove unused _extract_tool_result_content helper by @sentry-junior in #8422
- (metrics) Drop negatively sampled metrics immediately by @alexander-alderman-webb in #8425
- Update contributing guidelines by @sentrivana in #8424
- Move locks into batcher subclasses by @alexander-alderman-webb in #8325
3.0.2
Bug Fixes 🐛
- (google-genai) Await coroutines in early return by @alexander-alderman-webb in #8423
Documentation 📚
- (profiling) Fix stale comment referencing removed
start_profilingby @sentry-junior in #8401
Internal Changes 🔧
- (deps) Update getsentry/craft action to v3.14.1 by @renovate in #8398
- (dev) Replace pre-commit with prek by @joshuarli in #8354
3.0.1
New Features ✨
- Coding agents that set up Sentry now get a one-line note when tracing is off or the app sends no logs. The note points to
SETUP_CHECKLIST.md, a short setup checklist that ships in the package. It only prints while the setup is in progress, for an agent, and never in CI. Turn it off withSENTRY_AGENT_HINTS=0or with_experiments={"agent_setup_complete": True}insentry_sdk.init(). by @wedamija, @claude and @alexander-alderman-webb in #8269
Bug Fixes 🐛
- Avoid double span exit with agents by @alexander-alderman-webb in #8394
Internal Changes 🔧
Deps
2.77.0
New Features ✨
- Coding agents that set up Sentry now get a one-line note when tracing or logs is off. The note points to
SETUP_CHECKLIST.md, a short setup checklist that ships in the package. It only prints while the setup is in progress, for an agent, and never in CI. Turn it off withSENTRY_AGENT_HINTS=0or with_experiments={"agent_setup_complete": True}insentry_sdk.init(). by @wedamija, @claude and @alexander-alderman-webb in #8395
Other
- Revert "ci: Run test steps in parallel (#8313)" by @alexander-alderman-webb in #8338
3.0.1b2
New Features ✨
- Add per-metric windows to lock free metrics batcher by @alexander-alderman-webb with @sentry-release-bot in #8327
- Add basic lock-free metrics batcher by @alexander-alderman-webb and @claude in #8326
Internal Changes 🔧
- Move locks into batcher subclasses by @alexander-alderman-webb in #8325
3.0.1b1
- No documented changes.
3.0.0
New major release of the Python SDK is out now!
This release brings:
- ✨ Span streaming by default with streamlined API.
- 🕶️ Fine-grained data collection controls replace the single
send_default_piioption. - ☁️ Many improvements to our AWS Lambda instrumentation.
- And more!
3.0 contains breaking changes. Looking to migrate?
- Check out our migration guide for the most common migration patterns.
- Check out the full list of changes.
Issues? Questions?
Let us know:
2.76.0
New Features ✨
- (anthropic) Set gen_ai.usage.output_tokens.reasoning attributes for non-streaming responses by @srothh in #8329
Bug Fixes 🐛
- (gql) Scope the event processor to the query by @Mohil-Ahuja in #8307
- (scrubber) Match hyphenated header keys against the denylist by @ratomirjovanovic and @sentrivana in #8305
- (tracing) Strip whitespace around '=' in incoming baggage items by @arieleven in #8302
- Correct function names in deprecation warnings for start/stop_pr… by @AHS0003 in #8268
Documentation 📚
- (transport) Fix stale comment referencing
get_retry_afterby @sentry-junior in #8333 - Add note about regression tests to AGENTS.md by @sentrivana in #8324
Internal Changes 🔧
Deps
- Update getsentry/craft action to v3.12.2 by @sentrivana with @renovate in #8317
- Update github workflows by @sentrivana with @renovate and @sentry-junior in #8270
- Lock file maintenance by @renovate in #8273
- Update github workflows by @sentrivana with @renovate and @sentry-junior in #8060
Mypy
- Enable possibly-undefined error code by @sentrivana with @sentry-junior in #8290
- Enable unused-awaitable error code by @sentrivana with @sentry-junior in #8281
Ruff
- Enable PLC0415 to flag inline imports in the SDK by @sentrivana with @sentry-junior in #8285
- Enable RUF100 for unused noqa directives by @sentrivana with @sentry-junior in #8282
- Enable PT011 for overly broad pytest.raises() by @sentrivana with @sentry-junior in #8286
- Enable T20 to flag print() in the SDK by @sentrivana with @sentry-junior in #8283
Other
- (django) Strictly order cache spans to avoid flakes by @alexander-alderman-webb in #8266
- (fastmcp) Remove unused MCP request helpers by @sentry-junior in #8275
- (ray) Collect all client spans to avoid flake by @alexander-alderman-webb in #8314
- (renovate) Disable Java version updates in setup-java by @sentrivana with @sentry-junior in #8276
- (warden) Remove sdk-review skill by @dingsdax with @sentry-junior in #8337
- 🤖 Update test matrix with new releases (11/23) by @github-actions in #8346
- Run test steps in parallel by @alexander-alderman-webb in #8313
- Split Web 1 test group so Django runs on its own by @sentrivana with @sentry-junior in #8312
- Add typos spell check by @sentrivana with @sentry-junior in #8279
- Fix tests that could not fail by @sentrivana with @sentry-junior in #8288
- 🤖 Update test matrix with new releases (11/16) by @sentrivana with @github-actions in #8274
- Add file change detection to workflows by @safina57 and @alexander-alderman-webb in #7524
3.0.0rc1
This is a release candidate of the next Python SDK major, to be released in November 2026.
Want to give it a spin? Be our guest and let us know how it went!
✨ Notable Changes
- Say goodbye to transactions: span streaming is now the default tracing model
- The fine-grained
data_collectionsupersedes the flatsend_default_pii