plone / plone.recipe.zope2instance

zc.buildout recipe to setup and configure a Zope 2 instance.
https://pypi.org/project/plone.recipe.zope2instance
6 stars 23 forks source link

Support setting Sentry max_value_length #193

Closed gyst closed 5 months ago

gyst commented 5 months ago

My Sentry tracebacks routinely get truncated:

image

Previously, we used a monkeypatch to work around that:

 initialization =
     import sentry_sdk
     sentry_sdk.utils.MAX_STRING_LENGTH = 4096

The upstream change https://github.com/getsentry/sentry-python/commit/5478df29e9a25cb1e8e84f7e045d31e0b10030c7 both invalidates that monkeypatch and obviates the need for it, by adding proper API support for accepting larger tracebacks.

This PR adds support for the newly introduced init option of max_value_length here.

Additionally, it brings tox.ini in line with the Python versions declared as supported in setup.py

gyst commented 5 months ago

Thanks. Can you cut a release, so I can update our production buildouts?

mauritsvanrees commented 5 months ago

@gyst I have released 6.13.0: https://pypi.org/project/plone.recipe.zope2instance/6.13.0/