Skip to content

Commit c263e8e

Browse files
committed
Merge PR OCA#3451 into 18.0
Signed-off-by moylop260
2 parents 1f64126 + 5ee73a1 commit c263e8e

4 files changed

Lines changed: 22 additions & 29 deletions

File tree

sentry/README.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
======
62
Sentry
73
======
@@ -17,7 +13,7 @@ Sentry
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Beta
20-
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2218
:alt: License: AGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
@@ -70,7 +66,7 @@ arguments <https://docs.sentry.io/platforms/python/configuration/>`__
7066
can be configured by prepending the argument name with *sentry\_* in
7167
your Odoo config file. Currently supported additional client arguments
7268
are:
73-
``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``.
69+
``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``.
7470

7571
Example Odoo configuration
7672
--------------------------

sentry/const.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ def get_sentry_options():
112112
SentryOption(
113113
"max_request_body_size", DEFAULT_OPTIONS["max_request_body_size"], None
114114
),
115+
SentryOption(
116+
"max_value_length", DEFAULT_OPTIONS["max_value_length"], to_int_if_defined
117+
),
115118
SentryOption("attach_stacktrace", DEFAULT_OPTIONS["attach_stacktrace"], None),
116119
SentryOption("ca_certs", DEFAULT_OPTIONS["ca_certs"], None),
117120
SentryOption("propagate_traces", DEFAULT_OPTIONS["propagate_traces"], None),

sentry/readme/CONFIGURE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Other [client
77
arguments](https://docs.sentry.io/platforms/python/configuration/) can
88
be configured by prepending the argument name with *sentry\_* in your
99
Odoo config file. Currently supported additional client arguments are:
10-
`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`.
10+
`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`.
1111

1212
## Example Odoo configuration
1313

sentry/static/description/index.html

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>README.rst</title>
6+
<title>Sentry</title>
77
<style type="text/css">
88

99
/*
@@ -360,21 +360,16 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document">
363+
<div class="document" id="sentry">
364+
<h1 class="title">Sentry</h1>
364365

365-
366-
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367-
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368-
</a>
369-
<div class="section" id="sentry">
370-
<h1>Sentry</h1>
371366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372367
!! This file is generated by oca-gen-addon-readme !!
373368
!! changes will be overwritten. !!
374369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375370
!! source digest: sha256:e2f1d0bc83bf031b61df768de9c2f6d4f1feb303facf171a8d1889fc6a2635ca
376371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/18.0/sentry"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-sentry"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-tools&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/server-tools/tree/18.0/sentry"><img alt="OCA/server-tools" src="https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-sentry"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/server-tools&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378373
<p>This module allows painless <a class="reference external" href="https://sentry.io/">Sentry</a> integration
379374
with Odoo.</p>
380375
<p><strong>Table of contents</strong></p>
@@ -398,7 +393,7 @@ <h1>Sentry</h1>
398393
</ul>
399394
</div>
400395
<div class="section" id="installation">
401-
<h2><a class="toc-backref" href="#toc-entry-1">Installation</a></h2>
396+
<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
402397
<p>The module can be installed just like any other Odoo module, by adding
403398
the module’s directory to Odoo <em>addons_path</em>. In order for the module to
404399
correctly wrap the Odoo WSGI application, it also needs to be loaded as
@@ -412,7 +407,7 @@ <h2><a class="toc-backref" href="#toc-entry-1">Installation</a></h2>
412407
</pre>
413408
</div>
414409
<div class="section" id="configuration">
415-
<h2><a class="toc-backref" href="#toc-entry-2">Configuration</a></h2>
410+
<h1><a class="toc-backref" href="#toc-entry-2">Configuration</a></h1>
416411
<p>The following additional configuration options can be added to your Odoo
417412
configuration file:</p>
418413
<p>[TABLE]</p>
@@ -421,9 +416,9 @@ <h2><a class="toc-backref" href="#toc-entry-2">Configuration</a></h2>
421416
can be configured by prepending the argument name with <em>sentry_</em> in
422417
your Odoo config file. Currently supported additional client arguments
423418
are:
424-
<tt class="docutils literal">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</tt>.</p>
419+
<tt class="docutils literal">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</tt>.</p>
425420
<div class="section" id="example-odoo-configuration">
426-
<h3><a class="toc-backref" href="#toc-entry-3">Example Odoo configuration</a></h3>
421+
<h2><a class="toc-backref" href="#toc-entry-3">Example Odoo configuration</a></h2>
427422
<p>Below is an example of Odoo configuration file with <em>Odoo Sentry</em>
428423
options:</p>
429424
<pre class="literal-block">
@@ -445,14 +440,14 @@ <h3><a class="toc-backref" href="#toc-entry-3">Example Odoo configuration</a></h
445440
</div>
446441
</div>
447442
<div class="section" id="usage">
448-
<h2><a class="toc-backref" href="#toc-entry-4">Usage</a></h2>
443+
<h1><a class="toc-backref" href="#toc-entry-4">Usage</a></h1>
449444
<p>Once configured and installed, the module will report any logging event
450445
at and above the configured Sentry logging level, no additional actions
451446
are necessary.</p>
452447
<p><a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/149/14.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a></p>
453448
</div>
454449
<div class="section" id="known-issues-roadmap">
455-
<h2><a class="toc-backref" href="#toc-entry-5">Known issues / Roadmap</a></h2>
450+
<h1><a class="toc-backref" href="#toc-entry-5">Known issues / Roadmap</a></h1>
456451
<ul class="simple">
457452
<li><strong>No database separation</strong> – This module functions by intercepting
458453
all Odoo logging records in a running Odoo process. This means that
@@ -468,17 +463,17 @@ <h2><a class="toc-backref" href="#toc-entry-5">Known issues / Roadmap</a></h2>
468463
</ul>
469464
</div>
470465
<div class="section" id="bug-tracker">
471-
<h2><a class="toc-backref" href="#toc-entry-6">Bug Tracker</a></h2>
466+
<h1><a class="toc-backref" href="#toc-entry-6">Bug Tracker</a></h1>
472467
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>.
473468
In case of trouble, please check there if your issue has already been reported.
474469
If you spotted it first, help us to smash it by providing a detailed and welcomed
475470
<a class="reference external" href="https://github.com/OCA/server-tools/issues/new?body=module:%20sentry%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
476471
<p>Do not contact contributors directly about support or help with technical issues.</p>
477472
</div>
478473
<div class="section" id="credits">
479-
<h2><a class="toc-backref" href="#toc-entry-7">Credits</a></h2>
474+
<h1><a class="toc-backref" href="#toc-entry-7">Credits</a></h1>
480475
<div class="section" id="authors">
481-
<h3><a class="toc-backref" href="#toc-entry-8">Authors</a></h3>
476+
<h2><a class="toc-backref" href="#toc-entry-8">Authors</a></h2>
482477
<ul class="simple">
483478
<li>Mohammed Barsi</li>
484479
<li>Versada</li>
@@ -487,7 +482,7 @@ <h3><a class="toc-backref" href="#toc-entry-8">Authors</a></h3>
487482
</ul>
488483
</div>
489484
<div class="section" id="contributors">
490-
<h3><a class="toc-backref" href="#toc-entry-9">Contributors</a></h3>
485+
<h2><a class="toc-backref" href="#toc-entry-9">Contributors</a></h2>
491486
<ul class="simple">
492487
<li>Mohammed Barsi &lt;<a class="reference external" href="mailto:barsintod&#64;gmail.com">barsintod&#64;gmail.com</a>&gt;</li>
493488
<li>Andrius Preimantas &lt;<a class="reference external" href="mailto:andrius&#64;versada.eu">andrius&#64;versada.eu</a>&gt;</li>
@@ -500,13 +495,13 @@ <h3><a class="toc-backref" href="#toc-entry-9">Contributors</a></h3>
500495
</ul>
501496
</div>
502497
<div class="section" id="other-credits">
503-
<h3><a class="toc-backref" href="#toc-entry-10">Other credits</a></h3>
498+
<h2><a class="toc-backref" href="#toc-entry-10">Other credits</a></h2>
504499
<ul class="simple">
505500
<li>Vauxoo</li>
506501
</ul>
507502
</div>
508503
<div class="section" id="maintainers">
509-
<h3><a class="toc-backref" href="#toc-entry-11">Maintainers</a></h3>
504+
<h2><a class="toc-backref" href="#toc-entry-11">Maintainers</a></h2>
510505
<p>This module is maintained by the OCA.</p>
511506
<a class="reference external image-reference" href="https://odoo-community.org">
512507
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -521,6 +516,5 @@ <h3><a class="toc-backref" href="#toc-entry-11">Maintainers</a></h3>
521516
</div>
522517
</div>
523518
</div>
524-
</div>
525519
</body>
526520
</html>

0 commit comments

Comments
 (0)