OpenTelemetry Celery Instrumentation
Project description
Instrumentation for Celery.
Installation
pip install opentelemetry-instrumentation-celery
Usage
Start broker backend
- ::
docker run -p 5672:5672 rabbitmq
Run instrumented task
from opentelemetry.instrumentation.celery import CeleryInstrumentor
CeleryInstrumentor().instrument()
from celery import Celery
app = Celery("tasks", broker="amqp://localhost")
@app.task
def add(x, y):
return x + y
add.delay(42, 50)
References
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
Built Distribution
Close
Hashes for opentelemetry-instrumentation-celery-0.13b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7adcc92885531c75143eeab4094abe1d9e5d260825b4224a66e77a4541fb1fc1 |
|
MD5 | d31e0d33f7a590ef39f5bef3bb1094b4 |
|
BLAKE2b-256 | 50782eb10c26aeecd4c2a89393c190f7935d7d6a8418c33e4db8330b2fac397b |
Close
Hashes for opentelemetry_instrumentation_celery-0.13b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f02b11cdf8511eaa8ae581cf9ae3c7bfd45904a5c31c180821b5e3b8b545a3 |
|
MD5 | 22b1756cf088ef32948903edfa66fc56 |
|
BLAKE2b-256 | 49827d07176af2a239d24d7fcb75a1bd71f9ab2f8c87a1d1f8fcb0a0a030278a |