{"repo":"tim-schilling/django-salmon","free":true,"listed":false,"github":"https://github.com/tim-schilling/django-salmon","clone":"git clone https://github.com/tim-schilling/django-salmon.git","description":"A standardized way to observe Django's internals.","language":"Python","stars":11,"topics":["django","observability"],"license":null,"category":"analytics","readme_excerpt":"Django Salmon A standardized way to observe Django's internals. Observability is critical feature of software development, but tends to be neglected. It seems like the majority of Python APMs and observability tools have to monkey-patch Django's internals to properly observe the application. This library seeks to do that monkey-patching once, then provide a standardized set of signals/hooks to observe an application. Usage 1. Install it as a dependency: 2. Add it to your INSTALLED APPS : 3. Connect to the relevant signals: Configuration Django Salmon supports customizing the decorators that are applied to Django functionality. For example, by default the following decorators are used on all cache operations: Each of these decorators will measure a different facet and include it in the context for the django salmon.decorators.observe decorator. If you only need to measure the timing facet, use the following configuration: Observing your own functions Django Salmon supports you applying your own decorators explicitly or by using a registry and utilizing the OBSERVING configuration. You can register your own stacked decorators to the registry as well: Creating your own observer decorator You can define your own decorator to be used with the registry by adding the relevant data to the context. An example is: Project goals This project contains several hacks to support observing a Django application. The Django project should change to avoid the necessity of these hacks. Going fur","default_branch":null,"files":null,"tree":[],"storefront":"/r/tim-schilling","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tim-schilling/django-salmon/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}