django-structlog-duration
If you use django-structlog, this is a little extension that will populate the request_finished log with the duration of the request (request_duration).
Installation
Install the package.
pip install django-structlog-duration
Configure the middleware.
MIDDLEWARE = [
"django_structlog_duration.StartTimer",
# ...
"django_structlog.middlewares.RequestMiddleware",
"django_structlog_duration.StopTimer",
]
Metadata
Release files for django-structlog-duration 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_structlog_duration-0.0.1.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_structlog_duration-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / django_structlog_duration-0.0.1.tar.gz
| Download URL | django_structlog_duration-0.0.1.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a647d8867ef1ec67dc23a0a7668c0086a4ed8300d91c7134b6a45a7fb45ee1b3
|
|
BLAKE2b-256 checksum How to use checksums |
12282a319b94229cc3d8cadf3baa44b0a3af54183b92d313b998ed81fe962bcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.1 Linux/6.1.8-200.fc37.x86_64
|
Release files / django_structlog_duration-0.0.1-py3-none-any.whl
| Download URL | django_structlog_duration-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
156b2706c15ab5eb4d3b98a93b351e7ebc820c3e0efd29903ba32c9d219cbde6
|
|
BLAKE2b-256 checksum How to use checksums |
f97860075f68aba91053c4239c60443db551f1fdd8ffbdfa1c97c5d3aa52aee8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.2 CPython/3.11.1 Linux/6.1.8-200.fc37.x86_64
|