From 5ee73a17499b300e7ca40fad6a291490851d93fd Mon Sep 17 00:00:00 2001 From: Viznupriyan Date: Wed, 29 Oct 2025 18:26:53 +0530 Subject: [PATCH 1/2] [IMP] sentry: max_value_length config param --- sentry/README.rst | 8 ++---- sentry/const.py | 3 +++ sentry/readme/CONFIGURE.md | 2 +- sentry/static/description/index.html | 38 ++++++++++++---------------- 4 files changed, 22 insertions(+), 29 deletions(-) diff --git a/sentry/README.rst b/sentry/README.rst index 8e3f1597bcd..75ba75692ee 100644 --- a/sentry/README.rst +++ b/sentry/README.rst @@ -1,7 +1,3 @@ -.. image:: https://odoo-community.org/readme-banner-image - :target: https://odoo-community.org/get-involved?utm_source=readme - :alt: Odoo Community Association - ====== Sentry ====== @@ -17,7 +13,7 @@ Sentry .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github @@ -70,7 +66,7 @@ arguments `__ can be 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, attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate, auto_enabling_integrations``. +``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, attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate, auto_enabling_integrations, max_value_length``. Example Odoo configuration -------------------------- diff --git a/sentry/const.py b/sentry/const.py index f0205a6f0bc..a6a416d6acf 100644 --- a/sentry/const.py +++ b/sentry/const.py @@ -112,6 +112,9 @@ def get_sentry_options(): SentryOption( "max_request_body_size", DEFAULT_OPTIONS["max_request_body_size"], None ), + SentryOption( + "max_value_length", DEFAULT_OPTIONS["max_value_length"], to_int_if_defined + ), 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.md b/sentry/readme/CONFIGURE.md index 92ee130add5..a0cd3f1cc38 100644 --- a/sentry/readme/CONFIGURE.md +++ b/sentry/readme/CONFIGURE.md @@ -7,7 +7,7 @@ Other [client arguments](https://docs.sentry.io/platforms/python/configuration/) can be 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, attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate, auto_enabling_integrations`. +`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, attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate, auto_enabling_integrations, max_value_length`. ## Example Odoo configuration diff --git a/sentry/static/description/index.html b/sentry/static/description/index.html index 42117a52a2d..cebfa7f48e0 100644 --- a/sentry/static/description/index.html +++ b/sentry/static/description/index.html @@ -3,7 +3,7 @@ -README.rst +Sentry -
+
+

Sentry

- - -Odoo Community Association - -
-

Sentry

-

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

This module allows painless Sentry integration with Odoo.

Table of contents

@@ -398,7 +393,7 @@

Sentry

-

Installation

+

Installation

The module can be installed just like any other Odoo module, by adding the module’s directory to Odoo addons_path. In order for the module to correctly wrap the Odoo WSGI application, it also needs to be loaded as @@ -412,7 +407,7 @@

Installation

-

Configuration

+

Configuration

The following additional configuration options can be added to your Odoo configuration file:

[TABLE]

@@ -421,9 +416,9 @@

Configuration

can be 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, attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate, auto_enabling_integrations.

+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, attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate, auto_enabling_integrations, max_value_length.

-

Example Odoo configuration

+

Example Odoo configuration

Below is an example of Odoo configuration file with Odoo Sentry options:

@@ -445,14 +440,14 @@ 

Example Odoo configuration

-

Usage

+

Usage

Once configured and installed, the module will report any logging event at and above the configured Sentry logging level, no additional actions are necessary.

Try me on Runbot

-

Known issues / Roadmap

+

Known issues / Roadmap

  • No database separation – This module functions by intercepting all Odoo logging records in a running Odoo process. This means that @@ -468,7 +463,7 @@

    Known issues / Roadmap

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed @@ -476,9 +471,9 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Mohammed Barsi
  • Versada
  • @@ -487,7 +482,7 @@

    Authors

-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -521,6 +516,5 @@

Maintainers

-
From e571ac1b94f7e60bfc1fdec481fc2e1ba302774f Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Tue, 10 Feb 2026 21:53:04 +0000 Subject: [PATCH 2/2] [BOT] post-merge updates --- README.md | 2 +- sentry/README.rst | 8 ++++-- sentry/__manifest__.py | 2 +- sentry/static/description/index.html | 38 ++++++++++++++++------------ 4 files changed, 30 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index c34eefafb32..744c6a56d6f 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ addon | version | maintainers | summary [onchange_helper](onchange_helper/) | 18.0.1.0.1 | | Technical module that ease execution of onchange in Python code [rpc_helper](rpc_helper/) | 18.0.1.0.1 | simahawk | Helpers for disabling RPC calls [scheduler_error_mailer](scheduler_error_mailer/) | 18.0.1.0.0 | | Scheduler Error Mailer -[sentry](sentry/) | 18.0.1.0.3 | barsi naglis versada moylop260 fernandahf | Report Odoo errors to Sentry +[sentry](sentry/) | 18.0.1.0.4 | barsi naglis versada moylop260 fernandahf | Report Odoo errors to Sentry [sequence_python](sequence_python/) | 18.0.1.0.0 | | Calculate a sequence number from a Python expression [session_db](session_db/) | 18.0.1.0.1 | sbidoul | Store sessions in DB [test_auditlog](test_auditlog/) | 18.0.1.0.3 | | Additional unit tests for Audit Log based on accounting models diff --git a/sentry/README.rst b/sentry/README.rst index 75ba75692ee..70beb0a0412 100644 --- a/sentry/README.rst +++ b/sentry/README.rst @@ -1,3 +1,7 @@ +.. image:: https://odoo-community.org/readme-banner-image + :target: https://odoo-community.org/get-involved?utm_source=readme + :alt: Odoo Community Association + ====== Sentry ====== @@ -7,13 +11,13 @@ Sentry !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:e2f1d0bc83bf031b61df768de9c2f6d4f1feb303facf171a8d1889fc6a2635ca + !! source digest: sha256:ef40ec303dcfbdd5896a74fc2e057e8ecbf3301ecef86fbd94821b1cd2e46c8b !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png :target: https://odoo-community.org/page/development-status :alt: Beta -.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png +.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github diff --git a/sentry/__manifest__.py b/sentry/__manifest__.py index 7f950bc3f0e..941bbba7ddc 100644 --- a/sentry/__manifest__.py +++ b/sentry/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Sentry", "summary": "Report Odoo errors to Sentry", - "version": "18.0.1.0.3", + "version": "18.0.1.0.4", "category": "Extra Tools", "website": "https://github.com/OCA/server-tools", "author": "Mohammed Barsi," diff --git a/sentry/static/description/index.html b/sentry/static/description/index.html index cebfa7f48e0..9cc774b37c7 100644 --- a/sentry/static/description/index.html +++ b/sentry/static/description/index.html @@ -3,7 +3,7 @@ -Sentry +README.rst -
-

Sentry

+
+ + +Odoo Community Association + +
+

Sentry

-

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

+

Beta License: AGPL-3 OCA/server-tools Translate me on Weblate Try me on Runboat

This module allows painless Sentry integration with Odoo.

Table of contents

@@ -393,7 +398,7 @@

Sentry

-

Installation

+

Installation

The module can be installed just like any other Odoo module, by adding the module’s directory to Odoo addons_path. In order for the module to correctly wrap the Odoo WSGI application, it also needs to be loaded as @@ -407,7 +412,7 @@

Installation

-

Configuration

+

Configuration

The following additional configuration options can be added to your Odoo configuration file:

[TABLE]

@@ -418,7 +423,7 @@

Configuration

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, attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate, auto_enabling_integrations, max_value_length.

-

Example Odoo configuration

+

Example Odoo configuration

Below is an example of Odoo configuration file with Odoo Sentry options:

@@ -440,14 +445,14 @@ 

Example Odoo configuration

-

Usage

+

Usage

Once configured and installed, the module will report any logging event at and above the configured Sentry logging level, no additional actions are necessary.

Try me on Runbot

-

Known issues / Roadmap

+

Known issues / Roadmap

  • No database separation – This module functions by intercepting all Odoo logging records in a running Odoo process. This means that @@ -463,7 +468,7 @@

    Known issues / Roadmap

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed @@ -471,9 +476,9 @@

Bug Tracker

Do not contact contributors directly about support or help with technical issues.

-

Credits

+

Credits

-

Authors

+

Authors

  • Mohammed Barsi
  • Versada
  • @@ -482,7 +487,7 @@

    Authors

-

Contributors

+

Contributors

-

Maintainers

+

Maintainers

This module is maintained by the OCA.

Odoo Community Association @@ -516,5 +521,6 @@

Maintainers

+