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.3.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.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lumen_ai_celery-0.1.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ccc62df3881c970892932947efc99fc0ac3705dd055a1c2a1ef0b70a106c6349
MD5 d0291821e455a8779583a3916e6ffd94
BLAKE2b-256 52a5f79c92c9125ec8d06480627764843114956da5f3d7ccb1de04af574d0b18

See more details on using hashes here.

Provenance

The following attestation bundles were made for lumen_ai_celery-0.1.3.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.3-py3-none-any.whl.

File metadata

File hashes

Hashes for lumen_ai_celery-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7eec1bbdab8ac9893243dee5a0971eeca8cfd993da8fc16c56acc99d95a6f0c5
MD5 8c5db6fb3d8c12cf6ee0900837dd565d
BLAKE2b-256 2e9b03d014594b1b5e9f01bcffeb9b6f021e05fdd41d4474d90a503ba3fb7bf7

See more details on using hashes here.

Provenance

The following attestation bundles were made for lumen_ai_celery-0.1.3-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