Skip to main content

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'

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)

Source distribution for production-request 0.10.0
File Size Uploaded
production_request-0.10.0.tar.gz 32.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for production-request 0.10.0
File Interpreter ABI Platform
production_request-0.10.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.7.0

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.5

2 release files

0.6.3

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.7

2 release files

0.5.6

2 release files

0.5.5

1 release file

0.5.4

1 release file

0.5.3

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5.0

1 release file

0.4.2

2 release files

0.4.1

1 release file

0.4.0

1 release file

0.0.3.1

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page