Repository navigation
Releases
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
ποΈ Resources
2.75.0
New Features β¨
Bedrock
-
Support for Amazon Bedrock's Converse and ConverseStream APIs
The Boto3 integration is enabled automatically when
boto3is installed. To configure it explicitly:
import sentry_sdk
from sentry_sdk.integrations.boto3 import Boto3Integration
sentry_sdk.init(
dsn="...",
traces_sample_rate=1.0,
integrations=[
Boto3Integration(),
]
)- Set
gen_ai.response.time_to_first_chunkby @alexander-alderman-webb in #8255 - Record
gen_ai.response.finish_reasonsfor streamed responses by @alexander-alderman-webb in #8252 - Set
gen_ai.output.messagesfor streamed responses by @alexander-alderman-webb in #8251 - Set
gen_ai.response.finish_reasonsfor non-streaming responses by @alexander-alderman-webb in #8250 - Set
gen_ai.output.messagesfor non-streaming responses by @alexander-alderman-webb in #8249 - Set
gen_ai.input.messagesattribute by @alexander-alderman-webb in #8242 - Set
gen_ai.system_instructionsattribute by @alexander-alderman-webb in #8239 - Set token attributes for streamed responses by @alexander-alderman-webb in #8235
- Set token attributes for non-streaming responses by @alexander-alderman-webb in #8234
- Set
gen_ai.tool.definitionsattribute by @alexander-alderman-webb in #8233 - Record
inferenceConfigparameters by @alexander-alderman-webb in #8232 - Set
gen_ai.request.modelattribute by @alexander-alderman-webb in #8231 - Add extension skeleton by @alexander-alderman-webb in #8226
Other
Bug Fixes π
- (aws-lambda) Load path-style handlers once instead of on every invocation by @pabloDeputter and @sentrivana with @sentry-junior in #8134
- (gql) Remove credentials and query values from the transport URL by @Mohil-Ahuja in #8227
- (toxgen) Preserve caches on
--onlyand--skipby @sentrivana in #8240 - (utils) Look up package versions without scanning all installed packages by @Shellghostt in #8215
Documentation π
- (celery) Fix stale comment referencing removed
sentry_apply_entryby @sentry-junior in #8253 - Point Sentry Conventions links to conventions.sentry.dev by @cleptric and @claude in #8200
Internal Changes π§
Warden
- Add sdk-review skill and run built-in code-review by @dingsdax with @sentry-junior in #8247
- Remove find-bugs, already covered by code-review by @dcramer with @sentry-junior in #8204
- Enable incremental review by @Jeffreyhung with @sentry-junior in #8199
Other
- (deps) Lock file maintenance by @renovate in #8217
- (profiling) Remove unused ContinuousScheduler.pause stub by @sentry-junior in #8224
- Fix typos by @sentrivana with @sentry-junior in #8241
- π€ Update test matrix with new releases (11/09) by @sentrivana with @github-actions in #8218
3.0.0b4
This is a pre-release 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
ποΈ Resources
2.74.0
New Features β¨
Anthropic
- Record reasoning parts in streaming output by @alexander-alderman-webb in #8193
- Record reasoning parts in nonstreaming output by @alexander-alderman-webb in #8192
Other
- (typesafe) Handle inline images by @alexander-alderman-webb in #8164
Bug Fixes π
Anthropic
- Preserve cached
_iteratorproperty by @alexander-alderman-webb in #8163 - Stop unpacking output arrays by @alexander-alderman-webb in #8160
Other
- (aiohttp) Leave existing
baggageheader alone if it has existin⦠by @pabloDeputter in #8116 - (boto3) Adapt to botocore no longer signing baggage by @sentrivana in #8113
- (ci) Restrict pytest because of incompatibilities by @sentrivana in #8140
- (falcon) Handle integer HTTP statuses by @jap and @sentrivana in #8139
- (sampling) Respect incoming sample rate if not explicitly overridden by @sentrivana in #8185
- (tracing) Drop trailing comma when serializing baggage without third-party items by @alphasafal and @pabloDeputter in #8119
- (wsgi) Stop overwriting
server.addressby @alexander-alderman-webb in #8171
Internal Changes π§
Deps
- Lock file maintenance by @renovate in #8055
- Bump grpcio to 1.84.1 by @geoffg-sentry with @sentry-junior in #8136
- Bump uv to 0.13.5 by @geoffg-sentry with @sentry-junior in #8135
- Bump brotli to 1.2.1 by @geoffg-sentry with @sentry-junior in #8122
Other
- (mcp) Remove unused select_mcp_transactions fixture by @sentrivana with @sentry-junior in #8150
- (release) Bump craft to 3.9.0 and update config by @BYK with @sentry-junior in #8181
- (sessions) Remove unused TERMINAL_SESSION_STATES constant by @sentrivana with @sentry-junior in #8151
- (starlette) Remove unused _serialize_request_body_data helper by @sentry-junior in #8146
- (toxgen) Remove unused
get_file_hash()andget_last_updated()helpers by @sentry-junior in #8173 - (tracing) Remove unused base64_stripped regex by @sentry-junior in #8148
- (utils) Remove unused to_timestamp helper and epoch constant by @sentry-junior in #8147
- π€ Update test matrix with new releases (11/02) by @sentrivana with @github-actions in #8172
- Upgrade
sphinxand removepackagingupper bound by @alexander-alderman-webb in #8183 - Update test matrix with new releases (27/10) by @alexander-alderman-webb in #8126
3.0.0b3
This is a pre-release 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
ποΈ Resources
3.0.0b2
This is a pre-release of the next Python SDK major, to be released in November 2026.
Want to give it a spin? 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