Sentry
sentrySentry
This module allows painless Sentry integration with Tulio.
| Option | Description | Default |
|---|---|---|
| sentry_dsn | Sentry Data Source Name. You can find this value in your Sentry project configuration. Typically it looks something like this: https://<public_key>:<secret_key>@sentry.example.com/<project id> This is the only required option in order to use the module. | '' |
| sentry_enabled | Whether or not Sentry logging is enabled. | False |
| sentry_logging_level | The minimal logging level for which to send reports to Sentry. Possible values: notset, debug, info, warn, error, critical. It is recommended to have this set to at least warn, to avoid spamming yourself with Sentry events. | warn |
| sentry_exclude_loggers | A string of comma-separated logger names which should be excluded from Sentry. | werkzeug |
| sentry_ignored_exceptions | A string of comma-separated exceptions which should be ignored. You can use a star symbol (*) at the end, to ignore all exceptions from a module, eg.: tulio.exceptions.*. | tulio.exceptions.AccessDenied, tulio.exceptions.AccessError, tulio.exceptions.DeferredException, tulio.exceptions.MissingError, tulio.exceptions.RedirectWarning, tulio.exceptions.UserError, tulio.exceptions.ValidationError, tulio.exceptions.Warning, tulio.exceptions.except_orm |
| sentry_include_context | If enabled, additional context data will be extracted from current HTTP request and user session (if available). This has no effect for Cron jobs, as no request/session is available inside a Cron job. | True |
| sentry_release | Explicitly define a version to be sent as the release version to Sentry. Useful in conjuntion with Sentry’s “Resolve in the next release”-functionality. Also useful if your production deployment does not include any Git context from which a commit might be read. Overrides sentry_odoo_dir. | |
| sentry_odoo_dir | Absolute path to your Tulio installation directory. This is optional and will only be used to extract the Tulio Git commit, which will be sent to Sentry, to allow to distinguish between Tulio updates. Overridden by sentry_release |
Other client arguments can be configured by prepending the argument name with sentry_ in your Tulio config file. Currently supported additional client arguments are: include_local_variables, 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, max_request_body_size, debug, attach_stacktrace, ca_certs, propagate_traces, traces_sample_rate, auto_enabling_integrations.
Example Tulio configuration
Below is an example of Tulio configuration file with Tulio Sentry options:
[options]
sentry_dsn = https://<public_key>:<secret_key>@sentry.example.com/<project id>
sentry_enabled = true
sentry_logging_level = warn
sentry_exclude_loggers = werkzeug
sentry_ignore_exceptions = tulio.exceptions.AccessDenied,
tulio.exceptions.AccessError,tulio.exceptions.MissingError,
tulio.exceptions.RedirectWarning,tulio.exceptions.UserError,
tulio.exceptions.ValidationError,tulio.exceptions.Warning,
tulio.exceptions.except_orm
sentry_include_context = true
sentry_environment = production
sentry_release = 1.3.2
sentry_odoo_dir = /home/tulio/tulio/
Table of contents
Installation
The module can be installed just like any other Tulio module, by adding the module’s directory to Tulio addons_path. In order for the module to correctly wrap the Tulio WSGI application, it also needs to be loaded as a server-wide module. This can be done with the server_wide_modules parameter in your Tulio config file or with the --load command-line parameter.
This module additionally requires the sentry-sdk Python package to be available on the system. It can be installed using pip:
pip install sentry-sdk
Configuration
The following additional configuration options can be added to your Tulio configuration file:
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.
Known issues / Roadmap
- No database separation – This module functions by intercepting all Tulio logging records in a running Tulio process. This means that once installed in one database, it will intercept and report errors for all Tulio databases, which are used on that Tulio server.
- Frontend integration – In the future, it would be nice to add Tulio client-side error reporting to this module as well, by integrating raven-js. Additionally, Sentry user feedback form could be integrated into the Tulio client error dialog window to allow users shortly describe what they were doing when things went wrong.
| Technical name | sentry |
|---|---|
| Module version | 12.0.2.0.3 |
| Tulio versions | 1.0 |
| Category | Tools |
| Publisher | Contaura LLC
Ported to Tulio, tested and supported by Contaura LLC. |
| Original authors | Mohammed Barsi, Versada, Nicolas JEUDY, OCA, Vauxoo |
| License | AGPL-3
Open source: you may use, change and share
this module under its license. The price covers the Tulio port, its testing on Tulio
1.0 and the download. |
| Python libraries | sentry_sdk
Install them on the server with pip before installing the module. |
| Requires (Tulio core) | base |
| Lines of code | 647 |
| Downloads | 0 |
| Released | 12/06/2026 |