Skip to main content

LumenAI Celery Instrumentor — background task observability for AI workloads

Project description

lumen-ai-celery

Celery integration for LumenAI.

Includes

  • CeleryInstrumentor
  • Signal-based instrumentation for task_prerun, task_postrun, and task_failure
  • Tenant extraction from task keyword arguments when tenant_id is provided
  • Task result metadata extraction for tokens_in, tokens_out, and cost_usd

Install

pip install lumen-ai-celery

Usage

from lumen_ai import LumenAI
from lumen_ai_celery import CeleryInstrumentor

LumenAI.init(
    service_name="worker",
    redis_url="redis://localhost:6379/0",
    instrumentors=[CeleryInstrumentor()],
)

The integration observes task lifecycle spans without changing existing task bodies.

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

lumen_ai_celery-0.1.2.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lumen_ai_celery-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file lumen_ai_celery-0.1.2.tar.gz.

File metadata

  • Download URL: lumen_ai_celery-0.1.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lumen_ai_celery-0.1.2.tar.gz
Algorithm Hash digest
SHA256 318e1cf9155631c8c689df7b34697c4f740f6417c70c937ad8852ed32a6a2d5a
MD5 3d09ee97ec32930b6decbd64fa92ec9f
BLAKE2b-256 773c4389523e4deb6bb4c9bb528b1346028719713ed663de43ad02eaab8d524a

See more details on using hashes here.

Provenance

The following attestation bundles were made for lumen_ai_celery-0.1.2.tar.gz:

Publisher: publish.yml on skarL007/-lumen-ai-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lumen_ai_celery-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for lumen_ai_celery-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 005a071591601fc7bc943324ba12f7a027b5983b802775cc7c24421f4e7d02df
MD5 f8d080ab360a500f29b9a84080dc3a85
BLAKE2b-256 996b2acb4223b76ce15917528a25dc0711c33f67ae7e0aa482613e83973cd4a3

See more details on using hashes here.

Provenance

The following attestation bundles were made for lumen_ai_celery-0.1.2-py3-none-any.whl:

Publisher: publish.yml on skarL007/-lumen-ai-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page