Skip to main content

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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-aws-xray 0.2.0
File Size Uploaded
django-aws-xray-0.2.0.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-aws-xray 0.2.0
File Interpreter ABI Platform
django_aws_xray-0.2.0-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.0.tar.gz

Download URL django-aws-xray-0.2.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e4929b4831e874d881b5705ff3f412d5f98743280077d283dd6ebaac5fbc8512
BLAKE2b-256 checksum
How to use checksums
bffcecbd73d28318d56a2e1d19ef2b150d8796e5b66ae5ecab3c8c3f19652cc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / django_aws_xray-0.2.0-py2.py3-none-any.whl

Download URL django_aws_xray-0.2.0-py2.py3-none-any.whl
Size 11.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
385c298628320462cf99f8bb624c8dae3b9a8d41fce97e8fd580b1e54279fa71
BLAKE2b-256 checksum
How to use checksums
096a9fdb192dbc90e32a9814de08d14b9d468966513dce62ac59027ea44fdf6a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.2

2 release files

0.2.1

2 release files

This release

0.2.0 This release

2 release files

0.1.0

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page