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

-