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'

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.1.tar.gz (32.7 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.1-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for production_request-0.9.1.tar.gz
Algorithm Hash digest
SHA256 7e1ae71ffbcd02c9e0d682977b2b20830fc6c7c8c5517bc69f3b656de1fa74fa
MD5 b4a121a6ed1bb9acb3705c13f06f2929
BLAKE2b-256 381b0932aaa1d93d51b17fabd17197a2636ca293b9055abec85bd8c82271ebdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for production_request-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 05500679ff6889fe43b7a23af4bb9b9bbbdfb6d030a7a5dad88def0a1011f725
MD5 238e46c7724e38ae194b88e82e43de97
BLAKE2b-256 e27adec2b5f080e39d873b52898b6010f08a0ab68d5c6d75e367baa1c2d51a49

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.1 This release

2 files

0.9.0

2 files

0.7.0

2 files

0.6.8

2 files

0.6.7

2 files

0.6.6

2 files

0.6.5

2 files

0.6.3

2 files

0.6.1

2 files

0.6.0

2 files

0.5.7

2 files

0.5.6

2 files

0.5.5

1 file

0.5.4

1 file

0.5.3

1 file

0.5.2

1 file

0.5.1

1 file

0.5.0

1 file

0.4.2

2 files

0.4.1

1 file

0.4.0

1 file

0.0.3.4

1 file

0.0.3.3

1 file

0.0.3.2

1 file

0.0.3.1

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 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