G3W-ADMIN-SENTRY-MONITOR
G3W-SUITE module for application performance monitoring and error tracking via sentry.io.
Installation
Install sentry_monitor module into g3w-admin applications folder:
# Install module from github (v1.0.0)
pip3 install git+https://github.com/g3w-suite/g3w-admin-sentry-monitor.git@v1.0.0
# Install module from github (master branch)
# pip3 install git+https://github.com/g3w-suite/g3w-admin-sentry-monitor.git@master
# Install module from local folder (git development)
# pip3 install -e /shared-volume/g3w-admin-sentry-monitor
# Install module from PyPi (not yet available)
# pip3 install g3w-admin-sentry-monitor
Enable 'sentry_monitor' module adding it to G3W_LOCAL_MORE_APPS list:
# local_settings.py
G3WADMIN_LOCAL_MORE_APPS = [
...
'sentry_monitor'
...
]
Refer to g3w-suite-docker repository for more info about running this on a docker instance.
NB On Ubuntu Jammy you could get an UNKNOWN package install instead of g3w-admin-sentry-monitor, you can retry installing it as follows to fix it:
# Fix: https://github.com/pypa/setuptools/issues/3269#issuecomment-1254507377
export DEB_PYTHON_INSTALL_LAYOUT=deb_system
# And then install again the module
pip3 install ...
Configuration
The following packages are included in this module:
Refer to the official docs for a more comprehensive list of the available settings:
# Update your Sentry project DSN (Data Source Name)
#
# see: https://docs.sentry.io/product/sentry-basics/dsn-explainer/
# -------------------------------------------
SENTRY_JS_DSN = "https://your-javascript-dsn@sentry.example.com/1"
SENTRY_PY_DSN = "https://your-python-dsn@sentry.example.com/2"
<!--
Include javascript tracking script within all html pages you want to monitor
see: https://docs.djangoproject.com/en/2.2/topics/templates/#the-django-template-language
-->
<html>
<body>
...
{% if SETTINGS.SENTRY_JS %}
{{ SETTINGS.SENTRY_JS | safe }}
{% endif %}
...
</html>
For the default settings currently applied by this module, see also: sentry_monitor/apps.py
Check tracker integration
Intentionally trigger a javascript error within a django page (html template) and then login into your sentry.io account for viewing the trace log
<html>
<body>
...
{% if SETTINGS.SENTRY_JS %}
{{ SETTINGS.SENTRY_JS | safe }}
{% endif %}
...
<script>
myUndefinedFunction(); // Intentionally trigger a javascript error
</script>
</html>
Development and tests
The integration BDD scenarios are in
sentry_monitor/tests/features. They run in
the G3W-ADMIN/QGIS environment used by CI. Install test dependencies:
python3 -m pip install -r requirements_test.txt
From the configured G3W-ADMIN directory, run the BDD scenarios:
python3 manage.py behave --simple sentry_monitor/tests
For local development, clone both repositories into adjacent folders and install this plugin in editable mode from the G3W-ADMIN directory:
git clone https://github.com/g3w-suite/g3w-admin.git
git clone https://github.com/g3w-suite/g3w-admin-sentry-monitor.git
cd g3w-admin
python3 -m pip install -e ../g3w-admin-sentry-monitor
Enable sentry_monitor in G3WADMIN_LOCAL_MORE_APPS as described above.
Publish
Create a new git tag that is appropriate for the version you intend to publish, eg:
git tag -a v1.0.1
git push origin v1.0.1
Publishing on the Python Package Index
Steps to follow when releasing a new software version on PyPi.
First make sure you have the latest versions of pip, build and twine installed:
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine
Build the dist folder starting from the same directory where pyproject.toml is located:
python3 -m build
Upload all to PyPI and verify things look right:
twine upload dist/*
TODO
Find out a way to install this module through the INSTALLED_APPS (ie. much earlier than G3W_LOCAL_MORE_APPS) variable in order to correctly activate the monitoring python as well (ref: SENTRY_PY_DSN).
# local_settings.py
from django.conf import settings
# As per g3w-admin@v3.5 the below variable assignment is currently not
# possible because the INSTALLED_APPS variable is alwayse overridden
# regardless of the value assigned in here
INSTALLED_APPS = ['sentry_monitor'] + settings.INSTALLED_APPS
# A temporary workaround could be using the THIRD_PARTY_APPS variable:
THIRD_PARTY_APPS = ['sentry_monitor'] + settings.THIRD_PARTY_APPS
# /g3w-admin/g3w-admin/base/settings/__init__.py#L14 (v3.5)
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + G3WADMIN_APPS + G3WADMIN_PROJECT_APPS
Related resources
Sentry integrations:
- javascript + vue
- python + django
License: MPL-2
Metadata
Release files for g3w-admin-sentry-monitor 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| g3w_admin_sentry_monitor-0.0.2.tar.gz | 12.4 kB | With provenance | Details for g3w_admin_sentry_monitor-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| g3w_admin_sentry_monitor-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for g3w_admin_sentry_monitor-0.0.2-py3-none-any.whl |
Total release size: 24.8 kB
Release files / g3w_admin_sentry_monitor-0.0.2.tar.gz
| Download URL | g3w_admin_sentry_monitor-0.0.2.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
134a1a8f140075f1682729f45cfcd2861fc844c1df3b5bc927b3e8bfbf899522
|
|
BLAKE2b-256 checksum How to use checksums |
a1bf3a0bae02475c6c4ca17e94246e61b298e02b2eef8a1b93dcb57c84a4ef3d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / g3w_admin_sentry_monitor-0.0.2-py3-none-any.whl
| Download URL | g3w_admin_sentry_monitor-0.0.2-py3-none-any.whl |
|---|---|
| Size | 12.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c84d826b84777e60aff8b19342ea7bf5c74d0626b5a9100c88afb22a321ca07c
|
|
BLAKE2b-256 checksum How to use checksums |
334f69276e776fb6f56ede71ea29dc857c53f43055495e9c406ee92c6b01ce42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for g3w-admin-sentry-monitor 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for g3w_admin_sentry_monitor-0.0.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.