opentelemetry-instrumentor-dramatiq


Nameopentelemetry-instrumentor-dramatiq JSON
Version 0.1.1 PyPI version JSON
download
home_pageNone
SummaryAn instrumentor for dramatiq library
upload_time2024-11-18 13:38:13
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
licenseMIT License Copyright (c) 2024 Sunil Shrestha Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords dramatiq opentelemetry instrumentation tracing telemetry
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # opentelemetry-instrumentor-dramatiq

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

## Installation

```bash
pip install opentelemetry-instrumentor-dramatiq
```

## Usage

```python
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!

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "opentelemetry-instrumentor-dramatiq",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "dramatiq, opentelemetry, instrumentation, tracing, telemetry",
    "author": null,
    "author_email": "Sunil <shrest4647+pip@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/9e/1a/7ac39d5ffe4379df60da651a1b501748a0f1397e9a1d8cba2a7051680433/opentelemetry_instrumentor_dramatiq-0.1.1.tar.gz",
    "platform": null,
    "description": "# opentelemetry-instrumentor-dramatiq\n\nOpentelemetry traces instrumentation for Dramatiq (An async processing library for python)\n\n## Installation\n\n```bash\npip install opentelemetry-instrumentor-dramatiq\n```\n\n## Usage\n\n```python\nimport dramatiq\nfrom opentelemetry import trace\nfrom opentelemetry_instrumentor_dramatiq import DramatiqInstrumentor\n\ntracer = trace.get_tracer(__name__)\n\n# Instrument the dramatiq library at the start of your application\nDramatiqInstrumentor().instrument()\n\n@dramatiq.actor(queue_name=\"default\")\n@tracer.start_as_current_span(\"my_actor\")  # trace the actor\ndef my_actor(message):\n    print(message)\n\nmy_actor.send(\"Hello, world!\")\n\n```\n\n## Contributing\n\nContributions are welcome!\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Sunil Shrestha  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "An instrumentor for dramatiq library",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://github.com/Shrest4647/opentelemetry-instrumentor-dramatiq"
    },
    "split_keywords": [
        "dramatiq",
        " opentelemetry",
        " instrumentation",
        " tracing",
        " telemetry"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "4ad036d8e2b61057d043f9da1dad41955c215dd6f577d4c92238fc1243f9ff3c",
                "md5": "31b2020bd3902098ae464fe7933da849",
                "sha256": "cfa5d7c2b904b445451bb9009a7baa31489df898643081e65deb1e9d0cc1558f"
            },
            "downloads": -1,
            "filename": "opentelemetry_instrumentor_dramatiq-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "31b2020bd3902098ae464fe7933da849",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5815,
            "upload_time": "2024-11-18T13:38:12",
            "upload_time_iso_8601": "2024-11-18T13:38:12.737835Z",
            "url": "https://files.pythonhosted.org/packages/4a/d0/36d8e2b61057d043f9da1dad41955c215dd6f577d4c92238fc1243f9ff3c/opentelemetry_instrumentor_dramatiq-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "9e1a7ac39d5ffe4379df60da651a1b501748a0f1397e9a1d8cba2a7051680433",
                "md5": "b3c2cb1126f11372e08a8bb2f424c7b7",
                "sha256": "8c2642f19ae283dddd84fca0b84b9103002b24c1839e1a09e78473a64087339f"
            },
            "downloads": -1,
            "filename": "opentelemetry_instrumentor_dramatiq-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b3c2cb1126f11372e08a8bb2f424c7b7",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 4697,
            "upload_time": "2024-11-18T13:38:13",
            "upload_time_iso_8601": "2024-11-18T13:38:13.644129Z",
            "url": "https://files.pythonhosted.org/packages/9e/1a/7ac39d5ffe4379df60da651a1b501748a0f1397e9a1d8cba2a7051680433/opentelemetry_instrumentor_dramatiq-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-18 13:38:13",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Shrest4647",
    "github_project": "opentelemetry-instrumentor-dramatiq",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "opentelemetry-instrumentor-dramatiq"
}
        
Elapsed time: 0.82487s