Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mvantellingen/django-aws-xray
Unofficial Django app for AWS X-Ray
https://github.com/mvantellingen/django-aws-xray
aws django xray
Last synced: 3 months ago
JSON representation
Unofficial Django app for AWS X-Ray
- Host: GitHub
- URL: https://github.com/mvantellingen/django-aws-xray
- Owner: mvantellingen
- License: other
- Created: 2017-07-28T20:16:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-16T13:57:36.000Z (over 3 years ago)
- Last Synced: 2024-10-14T16:59:59.333Z (3 months ago)
- Topics: aws, django, xray
- Language: Python
- Homepage:
- Size: 127 KB
- Stars: 23
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES
- License: LICENSE
Awesome Lists containing this project
README
.. start-no-pypi
.. image:: https://travis-ci.org/mvantellingen/django-aws-xray.svg?branch=master
:target: https://travis-ci.org/mvantellingen/django-aws-xray.. image:: http://codecov.io/github/mvantellingen/django-aws-xray/coverage.svg?branch=master
:target: http://codecov.io/github/mvantellingen/django-aws-xray?branch=master.. image:: https://img.shields.io/pypi/v/django-aws-xray.svg
:target: https://pypi.python.org/pypi/django-aws-xray/.. end-no-pypi
===============
django-aws-xray
===============**N.B.**: AWS have released a beta version of their official X-Ray Python SDK which supports
Django, you might want to consider using that:
https://aws.amazon.com/about-aws/whats-new/2017/08/aws-x-ray-sdk-for-python-beta/Leverage AWS X-Ray for your Django projects! This Django app instruments your code
to send traces to the `X-Ray daemon`_... _`X-Ray daemon`: http://docs.aws.amazon.com/xray/latest/devguide/xray-daemon.html
.. image:: docs/_static/aws-xray-dashboard.png
Installation
============.. code-block:: shell
pip install django-aws-xray
Update your Django settings:
.. code-block:: python
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