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
django-aws-xray-0.2.0.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for django_aws_xray-0.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 385c298628320462cf99f8bb624c8dae3b9a8d41fce97e8fd580b1e54279fa71 |
|
MD5 | 84db14ebbe657842ba45a59d10422802 |
|
BLAKE2b-256 | 096a9fdb192dbc90e32a9814de08d14b9d468966513dce62ac59027ea44fdf6a |