Extension for AWS X-Ray SDK which enables tracing of Celery tasks
Project description
celery-aws-xray-sdk-extension
Celery signal handlers that integrate Celery task lifecycle with AWS X-Ray tracing.
There's a tiny example in the directory example
.
Installation
You can install it easily with pip
: pip install celery-aws-xray-sdk-extension
. For latest version visit PyPI.
Setup
This guide doesn't cover setting up AWS X-Ray SDK for Python or AWS X-Ray daemon. It's expected that you've already got some experience with it. If you don't have any experience with AWS X-Ray, please visit Amazon documentation.
- You have to have Celery signals enabled.
- Connect Celery signals to signal handlers from
celery_aws_xray_sdk_extension
module in your Celery setup. Example code is below this list. - You're good to go!
Connecting handlers to Celery signals
signals.after_task_publish.connect(xray_after_task_publish)
signals.before_task_publish.connect(xray_before_task_publish)
signals.task_failure.connect(xray_task_failure)
signals.task_postrun.connect(xray_task_postrun)
signals.task_prerun.connect(xray_task_prerun)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for celery-aws-xray-sdk-extension-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | cab029b7dcdc143e5b6dee68954232945708c93643e86baaabb65fcf5ba03095 |
|
MD5 | 41f956a797f325393062166425d94885 |
|
BLAKE2b-256 | 3a322d26003846f7256cdef1bde83b24127381de57ac54c9e2c5d86a87bcf5f2 |