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.4.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.4.tar.gz.

File metadata

  • Download URL: opentelemetry_instrumentor_dramatiq-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 4937e70129af4a58d0a48eeceef9359a2fc1382e114ea097ed1bd0c3225f6b63
MD5 ec0159e9a11a6b42a6d9f5c680b0a492
BLAKE2b-256 5e98315163c456f048fa18d812b2b76b18452475744bc1fc4fdce5c791689079

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opentelemetry_instrumentor_dramatiq-0.1.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6758eec57375ab847372b9e75ed322c2de64a3d542b63cb5889f2103bfe5ea27
MD5 6e500884def27c5cddacb052b9397918
BLAKE2b-256 cf1e3fc0c025dc74e5630439801753610c2cfa766915a8cc4ceec92a06cb9c6f

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