From 03af76f8394e79ac109d9482e7718270fad61e62 Mon Sep 17 00:00:00 2001
From: Hodei Navarro
Date: Sat, 2 Nov 2024 03:07:04 +0100
Subject: [PATCH] [FIX] sentry: Fix KeyError 'request_bodies' on
DEFAULT_OPTIONS
See original migration for reference: https://github.com/getsentry/sentry-python/commit/2b1d1cc092657ff84a0e92154ac2196a9ef795e4
---
sentry/README.rst | 2 +-
sentry/const.py | 2 +-
sentry/readme/CONFIGURE.rst | 2 +-
sentry/static/description/index.html | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/sentry/README.rst b/sentry/README.rst
index fc7c2a894ef..713a4de162e 100644
--- a/sentry/README.rst
+++ b/sentry/README.rst
@@ -106,7 +106,7 @@ configured by prepending the argument name with *sentry_* in your Odoo config
file. Currently supported additional client arguments are: ``with_locals,
max_breadcrumbs, release, environment, server_name, shutdown_timeout,
in_app_include, in_app_exclude, default_integrations, dist, sample_rate,
-send_default_pii, http_proxy, https_proxy, request_bodies, debug,
+send_default_pii, http_proxy, https_proxy, max_request_body_size, debug,
attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate,
auto_enabling_integrations``.
diff --git a/sentry/const.py b/sentry/const.py
index 78b783bddf8..b599a153287 100644
--- a/sentry/const.py
+++ b/sentry/const.py
@@ -107,7 +107,7 @@ def get_sentry_options():
SentryOption("http_proxy", DEFAULT_OPTIONS["http_proxy"], None),
SentryOption("https_proxy", DEFAULT_OPTIONS["https_proxy"], None),
SentryOption("ignore_exceptions", DEFAULT_IGNORED_EXCEPTIONS, split_multiple),
- SentryOption("request_bodies", DEFAULT_OPTIONS["request_bodies"], None),
+ SentryOption("max_request_body_size", DEFAULT_OPTIONS["max_request_body_size"], None),
SentryOption("attach_stacktrace", DEFAULT_OPTIONS["attach_stacktrace"], None),
SentryOption("ca_certs", DEFAULT_OPTIONS["ca_certs"], None),
SentryOption("propagate_traces", DEFAULT_OPTIONS["propagate_traces"], None),
diff --git a/sentry/readme/CONFIGURE.rst b/sentry/readme/CONFIGURE.rst
index 25de942df51..10e6a1f71a0 100644
--- a/sentry/readme/CONFIGURE.rst
+++ b/sentry/readme/CONFIGURE.rst
@@ -51,7 +51,7 @@ configured by prepending the argument name with *sentry_* in your Odoo config
file. Currently supported additional client arguments are: ``with_locals,
max_breadcrumbs, release, environment, server_name, shutdown_timeout,
in_app_include, in_app_exclude, default_integrations, dist, sample_rate,
-send_default_pii, http_proxy, https_proxy, request_bodies, debug,
+send_default_pii, http_proxy, https_proxy, max_request_body_size, debug,
attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate,
auto_enabling_integrations``.
diff --git a/sentry/static/description/index.html b/sentry/static/description/index.html
index 1d8f03a944b..f9afeae98bd 100644
--- a/sentry/static/description/index.html
+++ b/sentry/static/description/index.html
@@ -487,7 +487,7 @@
file. Currently supported additional client arguments are: with_locals,
max_breadcrumbs, release, environment, server_name, shutdown_timeout,
in_app_include, in_app_exclude, default_integrations, dist, sample_rate,
-send_default_pii, http_proxy, https_proxy, request_bodies, debug,
+send_default_pii, http_proxy, https_proxy, max_request_body_size, debug,
attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate,
auto_enabling_integrations.