Skip to main content

celery-aws-xray-sdk-extension

PyPI version PyPI license

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.

  1. You have to have Celery signals enabled.
  2. Connect Celery signals to signal handlers from celery_aws_xray_sdk_extension module in your Celery setup. Example code is below this list.
  3. 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)

Development

Before making any changes, please prepare your environment (no global changes are made!) with make setup-dev. Feel free to check what the target does in the Makefile.

This repository uses Conventional Commits.

Release files for celery-aws-xray-sdk-extension 0.1.2

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

Source distribution (sdist)

Source distribution for celery-aws-xray-sdk-extension 0.1.2
File Size Uploaded
celery-aws-xray-sdk-extension-0.1.2.tar.gz 3.7 kB Details

Release files / celery-aws-xray-sdk-extension-0.1.2.tar.gz

Download URL celery-aws-xray-sdk-extension-0.1.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
81e8a21259560074cb9dbfd54bf5d47b2d1ba0c64a54d959dd1d960e731186a5
BLAKE2b-256 checksum
How to use checksums
36792c8e79a3dc175c9b5f55cacab14678e20037d13160fca6374d192e837acc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.1.2 This release

1 release file

0.1.1

1 release file

0.1.0

1 release file

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