Inspector is a Code Execution Monitoring tool to help developers find out technical problems in their application automatically, before customers do.
- Python >= 3.x
- Django >= 3.x
Install the latest version of the package from PyPI:
pip install inspector-django
In settings.py
add the ingestion key of your project:
INSPECTOR_INGESTION_KEY = "xxxxxxxxx"
You can get a new key creating a new project in your Inspector dashboard.
Add inspector_django
to installed apps:
INSTALLED_APPS = [
....,
'inspector_django',
]
To monitor the incoming HTTP traffic you need to register the middleware.
We suggest to add the middleware at the top of the list:
MIDDLEWARE = [
'inspector_django.InspectorMiddleware',
....
]
It could be needed to exclude some parts of your application from your monitoring data. It could be something that doesn't impact your user experience, or if you prefer to focus your attention on a small part of your system.
The INSPECTOR_IGNORE_URL
also support wildcards:
INSPECTOR_IGNORE_URL = [
'static*',
'media*'
'assets*',
'js*',
'css*',
]
This is the default array. You have to copy this property in your settings.py
file
and then add your custom entries.
Checkout our official documentation for more detailed tutorial.
This library is licensed under the MIT license.