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.12b0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d6a58aa58830f160c04c0ca8ed00b384c28eb6e55d43d4777e3914d92738f2b |
|
MD5 | e59ab78b06e7bc22fe26aaa293e42562 |
|
BLAKE2b-256 | a9b8c833c54cca8c7104875868dc1841f688e753e855f5d6d848cc8fcdded5f2 |
Close
Hashes for opentelemetry_instrumentation_celery-0.12b0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d04ac1ea950452576d18d4f8d16d599bc6a61e4de3d06b76d70ffd436564d47 |
|
MD5 | 66ce1d14a3c69e02b10c347a61acc6c5 |
|
BLAKE2b-256 | 042394c8f44bf0685d7ed376247d19bf69a33250f5c4431da7380fe4f5f72e0f |