django-aws-xray
Leverage AWS X-Ray for your Django projects! This Django app instruments your code to send traces to the X-Ray daemon.
Installation
pip install django-aws-xray
Update your Django settings:
INSTALLED_APPS += [
'django_aws_xray'
]
MIDDLEWARE.insert(0, 'django_aws_xray.middleware.XRayMiddleware')
# Enable various instrumentation monkeypatches
AWS_XRAY_PATCHES = [
'django_aws_xray.patches.cache',
'django_aws_xray.patches.redis',
'django_aws_xray.patches.db',
'django_aws_xray.patches.requests',
'django_aws_xray.patches.templates',
]
Settings
Setting |
Name |
Default |
|---|---|---|
AWS_XRAY_SAMPLING_RATE |
Sampling rate |
100 |
AWS_XRAY_EXCLUDED_PATHS |
Exclude paths |
[] |
AWS_XRAY_HOST |
IP of X-Ray Daemon |
127.0.0.1 |
AWS_XRAY_PORT |
Port of X-Ray Daemon |
2000 |
AWS_XRAY_PATCHES |
Patches |
[] |
Credits
The database and cache instrumention code was based on the code from django-statsd
Metadata
Release files for django-aws-xray 0.2.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-aws-xray-0.2.1.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_aws_xray-0.2.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 18.3 kB
Release files / django-aws-xray-0.2.1.tar.gz
| Download URL | django-aws-xray-0.2.1.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
28de6dc09bf5edd6ba83d080056aebacd0ff1fc50ceecd07ee605995cf9fc629
|
|
BLAKE2b-256 checksum How to use checksums |
647eb82077a1aedecacfe57a5041a3a8dbfeafa4a28bb2263aff1bf6bcbec007
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / django_aws_xray-0.2.1-py2.py3-none-any.whl
| Download URL | django_aws_xray-0.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
d2c760d9a65e93769f1de8eab61a9e06b15d83454cb8b6dba537ac829af81d40
|
|
BLAKE2b-256 checksum How to use checksums |
df82034b495c1516247240bc229ddedbe7a47d7b28d225da64fbcffecc813a95
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |