Search 1.1 billion lines of Odoo code on GitHub

sentry

Author: Mohammed Barsi,Versada,Nicolas JEUDY,Odoo Community Association (OCA)
License: AGPL-3
Branch: 13.0
Repository: AITIC/server-tools
Dependencies: base
Languages: HTML (479, 46.6%), PO File (11, 1.1%), Python (330, 32.1%), and reStructuredText (207, 20.2%)
Other branches: 10.0, 10.0-ocabot-merge-pr-1567-by-dreispt-bump-patch, 11.0, 12.0, 12.0-ocabot-merge-pr-1625-by-gurneyalex-bump-major, 13.0-ocabot-merge-pr-1776-by-moylop260-bump-nobump, and 8.0
Other repositories: 001101/server-tools, 020cui/server-tools, 0yik/server-tools, 2FM/server-tools, 50611/server-tools, 5songHb/server-tools, AMhadhbi/server-tools, Albin-John/server-tools, AlceConsorcio/server-tools, Alex-Woo/server-tools, Alfa-90/server-tools, App247/server-tools, ArkanSystem/server-tools, Artielkami/server-tools, BCDR/server-tools, Banetese/server-tools, BradooDev/server-tools, Bubbles-IT/server-tools, Burakebf/server-tools, CB-Gran-Canaria/server-tools, CGenie/server-tools, Cgruppo/server-tools, Chandresh-SerpentCS/server-tools, Change2improve/server-tools, ChinaShrimp/server-tools, CiaranCheng/server-tools, ClearCorp/oca-server-tools, CodeFishEG/server-tools, Colorlessgold/server-tools, ComitorDevTeam/server-tools, Comunitea/server-tools, ContrerasTorrez/server-tools, CrazyJET/server-tools, DITIntl/server-tools, Danielzhulin/server-tools, DevMohamedFci/server-tools, Dgaroc/server-tools, Digital5-Odoo/server-tools, Dike90/server-tools, Dobtor-OCA/server-tools, DucTruongKomit/server-tools, DulingLai/server-tools, EBII/server-tools, ERPLibre/server-tools, FernandoCarlosGarcia/server-tools, FernandoRomera/server-tools, ForgeFlow/server-tools, GSLabIt/server-tools, Gabinete-Digital/server-tools, Gebesa-Dev/server-tools, GleydsonHudson/server-tools, GlobalManager/server-tools, Glue-Software-Engineering-AG/server-tools, Gofekra/server-tools, GreyShim/server-tools, GrupoAlvamex/server-tools, GuSWRolland/server-tools, Guobower/OCA-server-tools, HarshalBhoir/server-tools, Hellyna/server-tools, HomerDeoDatu/server-tools, Hothua/server-tools, Ingeos/server-tools, Intesco2-0/server-tools, IvanShirokikh/server-tools, Jagdish-Panchal/server-tools, JaimeAvellaneda/server-tools, Jarsa-dev/server-tools, Jarsa/server-tools, JayVora-SerpentCS/server-tools, Jeisonpernia/server-tools, JibenCL/server-tools, Johnvonthegreat/server-tools, JuaniFreedoo/server-tools, JuniorKRnd/server-tools, Kayuulab/server-tools, Koesj/server-tools, KonaERP/server-tools, Korynkai/server-tools, KottmannM/server-tools, LasLabs/server-tools, LevelPrime/server-tools, LlywelynLi/server-tools, LourenzoH/server-tools, Mahmoud-Alaa-Eldeen/server-tools, Manuel-Dellisse/server-tools, MariajMesa/server-tools, MediaJockey/server-tools, Mefistous/server-tools, Melodivo/server-tools, MindAndGo/server-tools, MjAbuz/server-tools, MrFangD/server-tools, NGTS-AUS/server-tools, NL66278/server-tools, Nowheresly/server-tools, OCA-MUK/server-tools, OCA/server-tools, ORETEK/server-tools, OctoComputer/server-tools, Odoo-Italia-Associazione/server-tools, OdooIndonesia/server-tools, Othniel1796/server-tools, OutillageStEtienne/server-tools, PCatinean/server-tools, PESOL/server-tools, PieterPaulussen/server-tools, PlanetaTIC/server-tools, Ppamungkas/server-tools, PrenorSistemas/server-tools, QubiQ/server-tools, Rad0van/server-tools, RealSolutionsLux/server-tools, Reinhard-sheng/server-tools, SanteLibre/server-tools, Sarfarazsajjad/server-tools, ScopeaFrance/server-tools, SequarSrl/server-tools, SeuMarco/server-tools, SilviaLeonSanchez/server-tools, SilvioGregorini/server-tools, SimoRubi/server-tools, SimoneVagile/server-tools, SokreamPhanqrl/server-tools, Sunnyshine008/server-tools, Syci-Consulting/server-tools, TRESCLOUD/server-tools, Tecnativa/server-tools, TemosEngenharia/server-tools, Thorncrag/server-tools, TimLai125/server-tools, Tonow-c2c/server-tools, TradePilotLLC/server-tools, UakamiStudio/server-tools, UnknownInfo/server-tools, VanMoof/server-tools, VasiliyKorobatov/server-tools, Vauxoo/server-tools, VisiionSolucionesTecnologicas/server-tools, VitalPet/server-tools, Wadios/server-tools, Yaman-als/server-tools, YogeshMahera-SerpentCS/server-tools, aadarsh977/server-tools, aaltinisik/server-tools, abakus-it/server-tools, abdulhalim-cu/server-tools, abdulrhmans/server-tools, acsone/server-tools, acsonefho/server-tools, adekock11/server-tools, adhoc-dev/server-tools, adriansteel/server-tools, agenterp/server-tools, agknz/server-tools, ahmed3bdelhady88/server-tools, aitorbouzas/server-tools, ajayjaviya/server-tools, ajinvn2019/server-tools, akhdaniel/server-tools, akhilpsivan01/server-tools, akretion/server-tools, alainivars/openerp-sentry, alan80080/server-tools, alecvinent/server-tools, alessavindell/server-tools, alfadil/server-tools, algiopensource/server-tools, alpham/server-tools, altoch/server-tools, amcor/server-tools, amebalibre/server-tools, amendoncabh/server-tools, anassahmed/server-tools, andriisem/server-tools, anhvu-sg/server-tools, anodino-dev/server-tools, ansinaesmejor/server-tools, antilhue/server-tools, antonyrajserpentcs/server-tools, apertoso/server-tools, area-scm/server-tools, aremili/server-tools, aroodooteam/server-tools, artux404/server-tools, aurestic/server-tools, avanzosc/server-tools, aymanshow/server-tools, azmeuk/server-tools, ba0f3/openerp-sentry, bacgdev/server-tools, bacgroup/server-tools, bala07123/server-tools, bangil0/server-tools, bealdav/server-tools, bicomm/server-tools, bishalgit/server-tools-1, bjccdsrlcr/server-tools, bmya/server-tools, bodi000/server-tools, boky1993/server-tools, boutitinizar/server-tools, brain-tec/runbot, brain-tec/server-tools, brainbeanapps/server-tools, bud-e/server-tools, bvkl/server-tools, camptocamp/server-tools, captivea-dcr/server-tools, cedvict/server-tools, cheikhousy/server-tools, chenwfal/server-tools, chianggq/server-tools, claro5/server-tools, codewareuae/server-tools, coopiteasy/server-tools, corsojulian7/server-tools, cristinamartinrod/server-tools, crnd-inc/server-tools, cuongpk/server-tools, dalal-intellisoft/server-tools, damdam-s/server-tools, damendieta/server-tools, danger89/server-tools, dani-xtendoo/server-tools, danimaribeiro/server-tools, daramousk/server-tools, davidwah/server-tools, ddico/server-tools, ddufresne/server-tools, delgerS/server-tools, dennybiasiolli/server-tools, dev-tanvir/server-tools, dev00007/server-tools, devang-dreambits/server-tools, diagramsoftware/server-tools, diegobgl/server-tools, dipakthapaofficial/server-tools, diverfr/server-tools, dmp16/server-tools, dmsergio/server-tools, dndoanh/server-tools, dong-z/server-tools, dperaltab/server-tools, druidoo-dev/server-tools, dsonnet/server-tools, ebirbe/server-tools, ecosoft-odoo/server-tools, edsersolis/server-tools, eezee-it/server-tools, elicoidal/server-tools, elperrofarelo/server-tools, emagdalenaC2i/server-tools, erfanjahanshahlo/server-tools, ermannognan/server-tools, esantos-octagono/server-tools, etobella/server-tools, eversatis/server-tools, ewac-nl/server-tools, exosoftware/oca-server-tools, ezdoo/server-tools, factorlibre/server-tools, fanha99/server-tools, fashkl/server-tools, felixvillafranca/server-tools, ferdiansahgg/server-tools, flosslab/server-tools, fmdl/server-tools, focusate/oca-server-tools, foutoucour/server-tools, fslibre/server-tools, gab-net/server-tools, gabrielo77/server-tools, gavindav/server-tools, gdgellatly/server-tools, gisce/openerp-sentry, gitguohao/server-tools, goanzaloo/server-tools, gordan-cuic/server-tools, grap/server-tools, grindtildeath/server-tools, groventure/server-tools, guandalf/server-tools, guewen/server-tools, gurneyalex/server-tools, gustavovalverde/server-tools, gxbsst/server-tools, gzanelli/server-tools, habbaba/server-tools, haidd/server-tools, haublang/server-tools, hbrunn/server-tools, hdb1234/server-tools, henrryyanez/server-tools, hhgabelgaard/server-tools, hibou-io/oca-server-tools, hiisoc/server-tools, hinfo506/server-tools, hippe-67/server-tools, holdenrehg/server-tools, hparfr/server-tools, hq8399/server-tools, huntergps/server-tools, hvcabaim/server-tools, i-vyshnevska/server-tools, iRichGit/server-tools, ibanh/server-tools, ideaspositivas-group/server-tools, igallart/server-tools, igor-mitin/server-tools, initOS/server-tools, insscn/server-tools, intero-chz/server-tools, invitu/server-tools, ip-candres/server-tools, itblabla/server-tools, ixor3/server-tools, izzihector/server-tools, j-zaballa/server-tools, jaballate/server-tools, jackxusho/server-tools, jacky82669513/server-tools, janverb/server-tools, jaosss/server-tools, jcarlosmontoya/server-tools, jeanpaul-mupagasi/server-tools, jeroen7s/server-tools, jesmar81/server-tools, jimmyec/server-tools, jjscarafia/server-tools, jnegrete/server-tools, joserprieto/server-tools, josueBulle/server-tools, josuf567/server-tools, jriveros/server-tools, julianram/server-tools, kait-avalah/server-tools, kamilmuhammed/server-tools, kamsir/server-tools, katyukha/server-tools, kelldave/server-tools, kevin070982/server-tools, kikopeiro/server-tools, kittiu/server-tools, kmee/server-tools, kos94ok-3D/server-tools, lasley/server-tools, leemannd/server-tools, legalsylvain/server-tools, lembregtse/server-tools, leonidasthe300/server-tools, lfreeke/server-tools, libregob/server-tools, lideritjnma/server-tools, liehu1/server-tools, lilotter45/server-tools, liweijie0812/server-tools, loftwah/server-tools, lonelyleaves/server-tools, luistorresm/server-tools, lukebranch/server-tools, magedmnb/server-tools, magnuscolors/server-tools, maherjaballi/server-tools, mamcode/server-tools, marcelomora/server-tools, mehdi-ghezal/server-tools, merchise-autrement/server-tools, michotm/server-tools, mikolodz/server-tools, minorisa/server-tools, mivilsoft/server-tools, mjadily/server-tools, modoolar/server-tools, mohamedhagag/server-tools, monksoftware/server-tools, mozaik-association/server-tools, msdeek/server-tools, mulaudzicalvin/server-tools, multidadosti-erp/server-tools, myonnet/oca-server-tools, mysticalis/server-tools, nabiforks/server-tools, nadiaafa/server-tools, necrodevz/server-tools, nehaksolves/server-tools, netoodoo/server-tools, newtratip/server-tools, nguyenductamlhp/server-tools, nicolasjelincic/server-tools, nilshamerlinck/server-tools, niulinlnc/server-tools, njeudy/server-tools, nodoo/server-tools, novacode-nl/server-tools, novawish/server-tools, ntsirintanis/server-tools, odof/server-tools, odooerpdevelopers/server-tools, odoogap/server-tools, odoosoft/server-tools, odoospace/server-tools, omalbastin/server-tools, one2pret/server-tools, onesteinbv/server-tools, onurugur/server-tools, open-net-sarl/server-tools, open2bizz/server-tools, osiell/server-tools, osipaas/server-tools, ovnicraft/server-tools, percypalomino/server-tools, phillipstack/server-tools, piensom/server-tools, praxigento/oca-server-tools, presenceverte/server-tools, programadorzurita/server-tools, pscloud/server-tools, pythoner-3k/server-tools, qtheuret/server-tools, quentinDupont/server-tools, raizs/server-tools, ravishekharco/server-tools, raycollazo/server-tools, redcor/server-tools, revstech/server-tools, rezaakba123/server-tools, richar-osse/server-tools, rifki/server-tools, rm-jamotion/server-tools, robertsvx27/server-tools, romendil/server-tools, ronozoro/server-tools, rrcfesc/server-tools, rrgaona/server-tools, rsullivan2704/server-tools, rven/server-tools, rwfnf/server-tools, rwsdigital/odoo-server-tools, sadeqamin/server-tools, sailguest/server-tools, sanube/server-tools, schout-it/server-tools, sebalix/server-tools, selim-b/server-tools, sergiocorato/server-tools, serpentcs-dev1/server-tools, sewisoft/server-tools, shepilov-vladislav/server-tools, simahawk/server-tools, simone/server-tools, skmezanul/server-tools, skukered/server-tools, skyoj/server-tools, smile-888/server-tools, smurf-U/server-tools, soeethiha/server-tools, solvosci/server-tools, spacemonkeythe/server-tools, ssaid/server-tools, steingabelgaard/server-tools, subteno-it/server-tools, sunflowerit/server-tools, sunshineLhj/server-tools, superjiel/server-tools, suprielfath/server-tools, sylvainvh/server-tools, sysprocesarcastro/server-tools, t-np/server-tools, tafaRU/server-tools, takinobori/oca-server-tools, tansadio/server-tools, tarteo/server-tools, tegin/server-tools, thinkopensolutions/oca-server-tools, tirma-sa/server-tools, tmasson/server-tools, tongjiou/server-tools, traviswaelbro/server-tools, trevi-software/server-tools, tschanzt/server-tools, tsengeagle/server-tools, tuanna7593/server-tools, tusharkwagh99/server-tools, unitek-solusi/OCA-server-tools, ursais/server-tools, valenciaricardos/server-tools, valentinthirion/server-tools, valmarnet/server-tools, vcloud9ray/server-tools, vdedyukhin/server-tools, ventor-tech/server-tools, versada/server-tools, victoralmau/server-tools, vmelnych/server-tools, westlyou/server-tools, wilcobergacker/server-tools, willmakenoise/server-tools, wowerliu/server-tools, www3838438/server-tools, xAlphaOmega/server-tools, xcgd/server-tools, xhair/server-tools, xichun/server-tools, xpansa/server-tools, xtjie/server-tools, xuanmu/server-tools, xwh123807/server-tools, xwh1238070/server-tools, yalabsio/server-tools, ycp1015/server-tools, yelizariev/server-tools, ygdmxy/server-tools, yogesh-serpentcs/server-tools, ypapouin/server-tools, yusniermatos/server-tools, yuzhengxing/server-tools, yvaucher/server-env, zambee/server-tools, zamberjo/server-tools, zarumaru/server-tools, zhaohengzeng/server-tools, zhaohuaw/server-tools, and zhujin001032/server-tools

Sentry

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

This module allows painless Sentry integration with Odoo.

Table of contents

Configuration

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

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.: odoo.exceptions.*. odoo.exceptions.AccessDenied, odoo.exceptions.AccessError, odoo.exceptions.DeferredException, odoo.exceptions.MissingError, odoo.exceptions.RedirectWarning, odoo.exceptions.UserError, odoo.exceptions.ValidationError, odoo.exceptions.Warning, odoo.exceptions.except_orm
sentry_processors A string of comma-separated processor classes which will be applied on an event before sending it to Sentry. raven.processors.SanitizePasswordsProcessor, odoo.addons.sentry.logutils.SanitizeOdooCookiesProcessor
sentry_transport Transport class which will be used to send events to Sentry. Possible values: threaded: spawns an async worker for processing messages, synchronous: a synchronous blocking transport; requests_threaded: an asynchronous transport using the requests library; requests_synchronous - blocking transport using the requests library. threaded
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 Odoo installation directory. This is optional and will only be used to extract the Odoo Git commit, which will be sent to Sentry, to allow to distinguish between Odoo updates. Overridden by sentry_release  

Other client arguments can be configured by prepending the argument name with sentry_ in your Odoo config file. Currently supported additional client arguments are: install_sys_hook, include_paths, exclude_paths, machine, auto_log_stacks, capture_locals, string_max_length, list_max_length, site, include_versions, environment.

Example Odoo configuration

Below is an example of Odoo configuration file with Odoo 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 = odoo.exceptions.AccessDenied,odoo.exceptions.AccessError,odoo.exceptions.MissingError,odoo.exceptions.RedirectWarning,odoo.exceptions.UserError,odoo.exceptions.ValidationError,odoo.exceptions.Warning,odoo.exceptions.except_orm
sentry_processors = raven.processors.SanitizePasswordsProcessor,odoo.addons.sentry.logutils.SanitizeOdooCookiesProcessor
sentry_transport = threaded
sentry_include_context = true
sentry_environment = production
sentry_auto_log_stacks = false
sentry_odoo_dir = /home/odoo/odoo/
sentry_release = 1.3.2

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

  • No database separation -- This module functions by intercepting all Odoo logging records in a running Odoo process. This means that once installed in one database, it will intercept and report errors for all Odoo databases, which are used on that Odoo server.
  • Frontend integration -- In the future, it would be nice to add Odoo client-side error reporting to this module as well, by integrating raven-js. Additionally, Sentry user feedback form could be integrated into the Odoo client error dialog window to allow users shortly describe what they were doing when things went wrong.

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 smashing it by providing a detailed and welcomed feedback.

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

Credits

Authors

  • Mohammed Barsi
  • Versada
  • Nicolas JEUDY

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/server-tools project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.