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.3.tar.gz (4.6 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.3.tar.gz.

File metadata

  • Download URL: opentelemetry_instrumentor_dramatiq-0.1.3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for opentelemetry_instrumentor_dramatiq-0.1.3.tar.gz
Algorithm Hash digest
SHA256 664be2d5cd1515cf8027d8525503a72dd188e7f1fc12ede57fadca743cab143a
MD5 67d14766524b93696697b900c8cb68e1
BLAKE2b-256 7666dcee50f86e2775b90b3c0aa81ffd7d66efb181a77f369db9e0ebd916010c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opentelemetry_instrumentor_dramatiq-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for opentelemetry_instrumentor_dramatiq-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cc0904bf5dc1ebd7dfb37a0b4aa0a6ddcf95de91152323908fb8aa3b3cefe26b
MD5 8120d29b82200bd5a7dbfa16df39bbc8
BLAKE2b-256 494877545601ad33c28b7c7becac3cbd8fe2aa44c06788163060344f1efbf943

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