production-request
author: BARS Group
Описание
Позволяет логировать метрики запросов (клиенсткое время, серверное время, время SQL) в production-средах
Установка
Установка производится командой -e git+https://stash.bars-open.ru/scm/budg/production_request.git@master#egg=production_request. При этом необходимо, чтобы при запуске pip install в качестве альтернативного index-url был указан http://pypi.bars-open.ru/simple/
Настройка
Для подключения логирования необходимо:
- В качестве DATABASE_ENGINE указать production_request
- Добавить ProductionRequestLoggingMiddleware в перечень MIDDLEWARE
- Подключить к рабочему столу production_request_client.js и xhr_interceptor.js
- Зарегистрировать ProductionRequestPack в контроллере
- Выполнить в инициализации шаблона рабочего стола функцию startLogging. Данная функция принимает на вход URL action'а action_save_client_log из предыдущего пункта
- Если необходимо логировать celery-task, то в CELERY_IMPORTS нужно добавить 'production_request.celery_handlers'
Metadata
Release files for production-request 0.10.0
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 |
|---|---|---|---|---|
| production_request-0.10.0.tar.gz | 32.7 kB | Without provenance | Details for production_request-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| production_request-0.10.0-py3-none-any.whl | Python 3 | none | any | Details for production_request-0.10.0-py3-none-any.whl |
Total release size: 87.0 kB
Release files / production_request-0.10.0.tar.gz
| Download URL | production_request-0.10.0.tar.gz |
|---|---|
| Size | 32.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
570cb246692f06e559bf068c0e88d6e09ad2d380ab54416df9f2eae795a41df1
|
|
BLAKE2b-256 checksum How to use checksums |
532b33f9c8ced3bf5e9558dae2524aade2e8e0e05b479a0890e2f9665e8159b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Release files / production_request-0.10.0-py3-none-any.whl
| Download URL | production_request-0.10.0-py3-none-any.whl |
|---|---|
| Size | 54.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42bc0a4906cbe3282c088d7a7751b24cb0af2f51d48e1fff780543e867cccce2
|
|
BLAKE2b-256 checksum How to use checksums |
ea524eff031eb7a3c80294c5f64fa529492671741ac18f33a6040dfa4c6e181c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.23
|
Security for production-request 0.10.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.