Skip to main content

OpenTelemetry Celery Instrumentation

Project description

pypi

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.12b0.tar.gz.

File metadata

  • Download URL: opentelemetry-instrumentation-celery-0.12b0.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/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.8

File hashes

Hashes for opentelemetry-instrumentation-celery-0.12b0.tar.gz
Algorithm Hash digest
SHA256 6d6a58aa58830f160c04c0ca8ed00b384c28eb6e55d43d4777e3914d92738f2b
MD5 e59ab78b06e7bc22fe26aaa293e42562
BLAKE2b-256 a9b8c833c54cca8c7104875868dc1841f688e753e855f5d6d848cc8fcdded5f2

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_celery-0.12b0-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_celery-0.12b0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d04ac1ea950452576d18d4f8d16d599bc6a61e4de3d06b76d70ffd436564d47
MD5 66ce1d14a3c69e02b10c347a61acc6c5
BLAKE2b-256 042394c8f44bf0685d7ed376247d19bf69a33250f5c4431da7380fe4f5f72e0f

See more details on using hashes here.

Supported by

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