Replacement for SENTRY_MAX_EXTRA_VARIABLE_SIZE

We recently updated our on-premise installation of Sentry to version 10.0.0. In our previous installations, we had a patch to change SENTRY_MAX_EXTRA_VARIABLE_SIZE to accommodate upload of app log files. Although SENTRY_MAX_EXTRA_VARIABLE_SIZE still exists in src/sentry/conf/server.py, I do not see it referenced anywhere. Is there a replacement setting that can be changed so that we can adjust the maximum content preserved from the extra detail in the client crash report submission? We would like to set it to at least 1MB.

This logic has moved into a precompiled shared library written in Rust and that one has a very narrow API surface. Your best bet is patching https://github.com/getsentry/sentry/blob/5825103be41fdd11ef72240e63b7a7f2b7201f4c/src/sentry/constants.py#L455 to False which basically disables almost all trimming we apply to events.

Thanks for the fast reply. We’ll look into that.