Key Changes
Support for Python 3.12
The SDK officially supports and is tested against Python 3.12.
Support for pathlib.Path()
Thanks to a community contributor David Baumgold we now support pathlib.Path()
instead of just strings for both serialization and settings.
Enforce Locals Max Sizes
In this release we have made some significant improvements to how we process large complex stack frames. There were shortening settings that were not properly being applied while truncating large objects. We have resolved those issues and made some other performance improvements to our data processing within the SDK.
We recommend reviewing the locals max sizes settings. The defaults are as follows...
import rollbar
rollbar.init(
access_token='<your token>',
locals={
'sizes': {
'maxlevel': 5,
'maxdict': 10,
'maxlist': 10,
'maxtuple': 10,
'maxset': 10,
'maxfrozenset': 10,
'maxdeque': 10,
'maxarray': 10,
'maxstring': 100,
'maxlong': 40,
'maxother': 100,
},
}
)
The locals max sizes values were not consistently enforced in versions prior to 1.1.0
, and so you may find that data previously included in prior version of the SDK is now being truncated. If that data is vital to your error investigation, you will want to adjust these values.
What's Changed
- Updated supported/tested frameworks and modernized tests and packaging by @danielmorell in #455
- Fixed #398 FastAPI integration fails if docs are disabled by @danielmorell in #459
- Added support
pathlib.Path()
objects by @singingwolfboy in $450 - Added support for Python 3.12 by @danielmorell in #460
- Changed the
ShortenerTransform
to use breadth first traversal by @danielmorell in #461 - Fixed shortener multi level shortening by @danielmorell and @pawelsz-rb. See #449
Full Changelog: v1.0.0...v1.1.0