Metadata-Version: 2.5
Name: trytond_bugsink
Version: 8.0.0
Summary: Bugsink Integration
Author: Clemens Hupka
Maintainer-email: Clemens Hupka <clemens.hupka@backend.at>
License-Expression: GPL-3.0-or-later
License-File: COPYRIGHT
License-File: LICENSE
Keywords: bugsink,error,reporting,sentry,tryton
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Plugins
Classifier: Framework :: Tryton
Classifier: Topic :: Software Development :: Bug Tracking
Classifier: Topic :: System :: Monitoring
Requires-Python: >=3.10
Requires-Dist: trytond<8.1,>=8.0
Provides-Extra: test
Description-Content-Type: text/x-rst

Bugsink
=======

The ``bugsink`` module integrates a Tryton server with a
`Bugsink <https://bugsink.com>`_ instance for automatic error reporting.

Bugsink is a self-hosted, Sentry-compatible error tracking service.
When enabled, unhandled exceptions that occur during request processing
are automatically sent to the configured Bugsink project as
Sentry-compatible events, including full stack traces, request context,
and server metadata.

Features
--------

- **Automatic Error Reporting**: Unhandled exceptions in the WSGI
  request loop are captured and reported to Bugsink.
- **Sentry-Compatible Protocol**: Events are sent in the standard
  Sentry envelope format, compatible with any Sentry-compatible
  backend.
- **Configurable**: Enable/disable reporting, set the DSN, environment
  name, and release version from a singleton configuration record.
- **No External Dependencies**: Uses only the Python standard library
  (``urllib``, ``json``, ``traceback``) for event transmission.
- **Fail-Safe**: The error handler never raises; reporting failures are
  logged but do not affect the original exception flow.

Configuration
-------------

After installing the module, navigate to
*Administration > Configuration > Bugsink Configuration* and set:

- **DSN**: The Bugsink project DSN (e.g.
  ``http://<key>@<host>:<port>/<project_id>``).
- **Enabled**: Check to activate error reporting.
- **Environment**: A label such as ``production`` or ``staging``.
- **Release**: An optional release identifier (e.g. ``8.0.0``).