Commit Graph

10 Commits (30bd2edfce1a0fea954e947aed0de660ef05a98a)

Author SHA1 Message Date
Deivis Laya e70628ee60 [FIX] sentry: downgrade sentry-sdk to compatible version
Odoo requires urllib3 == 1.26.5
5c12ec09c5/requirements.txt (L42)

sentry-sdk > 1.9.0 required urllib3 >= 1.26.11
4f1f782fbe/setup.py (L43)

Currently, urllib3 >= 1.26.11 is causing the following error in
response.py:

``` Traceback (most recent call last):
"/home/odoo/.local/lib/python3.8/site-packages/urllib3/response.py",
line 705, in _error_catcher
    yield
  File
"/home/odoo/.local/lib/python3.8/site-packages/urllib3/response.py",
line 830, in _raw_read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
urllib3.exceptions.IncompleteRead: IncompleteRead(1501 bytes read, -827
more expected)
```

On the other hand, sentry 1.9.0 supports urllib3 >= 1.10.0, satisfying
odoo requirements.

This partially reverts
51115f5ea1.
That was initially introduced to support newer versions of `sentry_sdk`, but won't be required anymore
due to this downgrade.
2023-06-06 03:33:41 +00:00
Deivis Laya 51115f5ea1 [FIX] sentry: change with_locals to include_local_variables variable
Currently, version 1.17.0 of sentry_sdk is causing the following error:

SentryOption("with_locals", DEFAULT_OPTIONS["with_locals"], None),
KeyError: 'with_locals'.

Where the with_locals key is not found in the dictionary, generating an
error, stopping the installation of the sentry module.

In version 1.17.0 rename 'with_locals'  to 'include_local_variables'
79e33169aa

This commit adjust the  get_sentry_options() method in
https://github.com/Vauxoo/server-tools/blob/14.0/sentry/const.py file, set the new variable.
2023-03-18 03:16:30 +00:00
Florian Mounier c9ee23a2d3 [FIX] sentry: warn about sentry_transport only if it is specified in config 2022-10-20 09:53:12 +03:00
Florian Mounier ab16a0bef1 [FIX] sentry: Coerce numerical config values 2022-10-20 09:53:12 +03:00
Fernanda Hernandez da6cae3ba8 [IMP] sentry: migrate sentry-raven to new api sentry-sdk 2022-10-20 09:53:12 +03:00
Ivan 3cf04228e0 [IMP] sentry: black, isort 2022-10-20 09:53:12 +03:00
Simone Orsi 610fac7938 Global pylint cleanup 2022-10-20 09:53:12 +03:00
Atte Isopuro 509627447f Enable setting a release option directly
sentry: It is not always possible to read commit information from
a production environment. In those cases it is useful to be able
to set a release version manually.

[UPD] Update sentry.pot
2022-10-20 09:53:12 +03:00
Naglis Jonaitis cd9e53d934 [FIX] sentry: fixes missing `raven` library preventing loading of modules
Related: #761 #879 #881
2022-10-20 09:53:12 +03:00
Naglis Jonaitis f8c404c053 [ADD] sentry module (#761)
* [ADD] sentry module

* [FIX] updated sentry module according to PR comments
2022-10-20 09:53:12 +03:00