Skip to main content

An instrumentor for dramatiq library

Project description

opentelemetry-instrumentor-dramatiq

Opentelemetry traces instrumentation for Dramatiq (An async processing library for python)

Installation

pip install opentelemetry-instrumentor-dramatiq

Usage

import dramatiq
from opentelemetry import trace
from opentelemetry_instrumentor_dramatiq import DramatiqInstrumentor

tracer = trace.get_tracer(__name__)

# Instrument the dramatiq library at the start of your application
DramatiqInstrumentor().instrument()

@dramatiq.actor(queue_name="default")
@tracer.start_as_current_span("my_actor")  # trace the actor
def my_actor(message):
    print(message)

my_actor.send("Hello, world!")

Contributing

Contributions are welcome!

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

opentelemetry_instrumentor_dramatiq-0.1.2.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_instrumentor_dramatiq-0.1.2.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentor_dramatiq-0.1.2.tar.gz
Algorithm Hash digest
SHA256 fb2337e61d79650e4a71c82840ef2e941cae38adb7ef728b65cd2b5935fd1018
MD5 4569b901c7ce01071b71b6384bd993fd
BLAKE2b-256 7169c3a565c1da775a11c3ba9b177366b76354d12565926f91011889246b6437

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentor_dramatiq-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentor_dramatiq-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fa05dc28ccd342b15b63d9b03a1834904fcf100bdfe7899f844fbfa52ed6efcb
MD5 14b14b78632ef33e62c6a97623185c3a
BLAKE2b-256 bc6728731324cc1956b678e09fc9eb094f70dd2b1e20b78221ff384b3cb7cf36

See more details on using hashes here.

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