← All platforms

Tryton error tracking

Your business runs on Tryton. Keep its error reports as close as its data. The Sentry Tryton integration sends exceptions to Telebugs on your server.

~/hoofnotes  pip install sentry-sdk
~/hoofnotes  nvim wsgi.py
import sentry_sdk
from sentry_sdk.integrations.trytond import TrytondWSGIIntegration
sentry_sdk.init(
# Copy the complete Telebugs DSN, key and path included.
dsn="YOUR_TELEBUGS_DSN",
integrations=[TrytondWSGIIntegration()],
)
from trytond.application import app as application
~/hoofnotes  gunicorn wsgi:application

Space pauses or resumes. R replays. Escape shows the complete setup.

Hang on, I already use Sentry

Keep sentry-sdk and change its destination to your Telebugs DSN. Your error reports stay on your server. You don’t need a Sentry account.

Can this cover my custom business modules?

Yes. Exceptions from custom Tryton modules can be reported through the server integration. Their Python backtraces help you follow the failure into your own code.

Does my business data have to leave my server?

The reports go to your Telebugs server. What goes into a report depends on your SDK configuration; you can filter sensitive fields before sending them.