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.instrumentation.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.0.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.0.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentor_dramatiq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2d4441bda581d54ba640f35b193edac7d6abe0acf468204a67ee2e11bac1c9b9
MD5 f5465284a6a47abefbcd948d5b4f7822
BLAKE2b-256 4e27cfa06c64e05e24d7506f49cf977335e2fe7ce7a416d0f623f7542a16bb00

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for opentelemetry_instrumentor_dramatiq-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aea611935d42b3a591e1f78824acf8e5aad34de34ffb5d2edb6a6c7cd09e14ec
MD5 f3c7aea85a7987607a9b4a325e05aa64
BLAKE2b-256 81d2113eecb0b5fc6535a42ec2ce2a592de8cf30e916aa450edb557f75cd1486

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