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
File details
Details for the file opentelemetry-instrumentation-celery-0.13b0.tar.gz
.
File metadata
- Download URL: opentelemetry-instrumentation-celery-0.13b0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7adcc92885531c75143eeab4094abe1d9e5d260825b4224a66e77a4541fb1fc1 |
|
MD5 | d31e0d33f7a590ef39f5bef3bb1094b4 |
|
BLAKE2b-256 | 50782eb10c26aeecd4c2a89393c190f7935d7d6a8418c33e4db8330b2fac397b |
File details
Details for the file opentelemetry_instrumentation_celery-0.13b0-py3-none-any.whl
.
File metadata
- Download URL: opentelemetry_instrumentation_celery-0.13b0-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5f02b11cdf8511eaa8ae581cf9ae3c7bfd45904a5c31c180821b5e3b8b545a3 |
|
MD5 | 22b1756cf088ef32948903edfa66fc56 |
|
BLAKE2b-256 | 49827d07176af2a239d24d7fcb75a1bd71f9ab2f8c87a1d1f8fcb0a0a030278a |