Skip to main content

Metric collector for production

Project description

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/

Настройка

Для подключения логирования необходимо:

  1. В качестве DATABASE_ENGINE указать production_request
  2. Добавить ProductionRequestLoggingMiddleware в перечень MIDDLEWARE
  3. Подключить к рабочему столу production_request_client.js и xhr_interceptor.js
  4. Зарегистрировать ProductionRequestPack в контроллере
  5. Выполнить в инициализации шаблона рабочего стола функцию startLogging. Данная функция принимает на вход URL action'а action_save_client_log из предыдущего пункта
  6. Если необходимо логировать celery-task, то в CELERY_IMPORTS нужно добавить 'production_request.celery_handlers'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

production_request-0.9.0.tar.gz (32.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

production_request-0.9.0-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

Details for the file production_request-0.9.0.tar.gz.

File metadata

  • Download URL: production_request-0.9.0.tar.gz
  • Upload date:
  • Size: 32.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for production_request-0.9.0.tar.gz
Algorithm Hash digest
SHA256 0d95d27f597df446a6f3a3e8bc603cf13eae3de11b7cfdc532ec0de3c6db27e8
MD5 afa3db389e94781239666d94acba8675
BLAKE2b-256 9b6ce852948d2c6211fe9d5b4b15c71e59e70b58731fc7a2557a0ce29a348030

See more details on using hashes here.

File details

Details for the file production_request-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for production_request-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c00292eafe790141c434c9569dfa941a0ed0b7165df0dbb1806c719de9d72f10
MD5 b2469b415c2b4bb77d4de8c8b1717404
BLAKE2b-256 da9b1e17aeab24bd6c9cd63e05f1e38c5161232c65fd8574dc9a663cec8407a2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page