Version 3.0.0 of the Sentry Python SDK is now available.
This is a major release with breaking changes. Read the migration guide before you upgrade.
New Features
- ✨ Polished and simplified tracing API, backed by span streaming. There are no transactions anymore.
sentry_sdk.start_span()is all you need. - 🕶️ Granular control over what gets sent with
data_collection. Instead of a singlesend_default_piitoggle, you can pick what exactly the SDK should collect and how. - ☁️ AWS Lambda and boto3 instrumentation has been improved, with Lambda trigger detection, trace propagation through SQS and SNS, and support for more AWS services.
Breaking Changes
- The organically-grown custom tracing API has changed. There is no
start_transactionorstart_childanymore. Everything can be done via thestart_spanAPI. - We've removed most extras. Install
sentry-sdkinstead ofsentry-sdk[fastapi], for example. The extras that we removed didn't have any effect. - Our logging integrations (standard library logging and Loguru) are not enabled by default anymore, and their options have changed.
- For more breaking changes, see the 2.x to 3.x migration guide.
How to Upgrade
- 2.x to 3.x migration guide in the Sentry docs
- Detailed list of changes in the repo
- Release notes