Django AWS X-Ray
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-aws-xray-0.2.2.tar.gz.
File metadata
- Download URL: django-aws-xray-0.2.2.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
937e66dc5058fc08128c9ede4458241bd5a24d0f1a48c5b1852f1e957fca6116
|
|
| MD5 |
f3cc4e2847288e9c44e1e64657b7dbfe
|
|
| BLAKE2b-256 |
33b1fa1c08aab4b1b7d432c846bdc47dbc52af8b7d55d66de49270e0d370b7a3
|
File details
Details for the file django_aws_xray-0.2.2-py2.py3-none-any.whl.
File metadata
- Download URL: django_aws_xray-0.2.2-py2.py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4082f1a9c2a9a9e6d23ae674ebcaad201c34d89bf534a70da9ed3e71759e0201
|
|
| MD5 |
0bed53fefc3068934abc35e1e621838a
|
|
| BLAKE2b-256 |
8c221659dc0d889c83de7eb830b74920ad13b6a1d0c0092ba4b65878622c0c58
|