# OpenTelemetry Instrumentation for Gunicorn
[](https://pypi.org/project/opentelemetry-instrumentation-gunicorn/)
[](https://pypi.org/project/opentelemetry-instrumentation-gunicorn/)
[](https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/)
[](https://github.com/Agent-Hellboy/opentelemetry-instrumentation-gunicorn/actions/workflows/ci.yml)
Automatic OpenTelemetry tracing and metrics for Gunicorn WSGI servers.
- **Documentation**: [https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/](https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/)
- **Quickstart**: [Quickstart Guide](https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/quickstart/)
- **Installation**: [Installation Guide](https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/installation/)
- **Configuration**: [Configuration Guide](https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/configuration/)
## Install
```bash
pip install opentelemetry-instrumentation-gunicorn opentelemetry-api opentelemetry-sdk
```
## Minimal Usage (Flask)
```python
from flask import Flask
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor, ConsoleSpanExporter
from opentelemetry.instrumentation.gunicorn import GunicornInstrumentor
trace.set_tracer_provider(TracerProvider())
trace.get_tracer_provider().add_span_processor(BatchSpanProcessor(ConsoleSpanExporter()))
app = Flask(__name__)
GunicornInstrumentor().instrument()
```
For full examples and guidance, see the docs.
Raw data
{
"_id": null,
"home_page": null,
"name": "opentelemetry-instrumentation-gunicorn",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": null,
"author": "Prince Roshan",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/cd/db/e09c86a71813879ab59e54c79f02999c0350607a9bac375153e8ecb4a92f/opentelemetry_instrumentation_gunicorn-0.1.0b1.tar.gz",
"platform": null,
"description": "# OpenTelemetry Instrumentation for Gunicorn\n\n[](https://pypi.org/project/opentelemetry-instrumentation-gunicorn/)\n[](https://pypi.org/project/opentelemetry-instrumentation-gunicorn/)\n[](https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/)\n[](https://github.com/Agent-Hellboy/opentelemetry-instrumentation-gunicorn/actions/workflows/ci.yml)\n\nAutomatic OpenTelemetry tracing and metrics for Gunicorn WSGI servers.\n\n- **Documentation**: [https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/](https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/)\n- **Quickstart**: [Quickstart Guide](https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/quickstart/)\n- **Installation**: [Installation Guide](https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/installation/)\n- **Configuration**: [Configuration Guide](https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/configuration/)\n\n## Install\n\n```bash\npip install opentelemetry-instrumentation-gunicorn opentelemetry-api opentelemetry-sdk\n```\n\n## Minimal Usage (Flask)\n\n```python\nfrom flask import Flask\nfrom opentelemetry import trace\nfrom opentelemetry.sdk.trace import TracerProvider\nfrom opentelemetry.sdk.trace.export import BatchSpanProcessor, ConsoleSpanExporter\nfrom opentelemetry.instrumentation.gunicorn import GunicornInstrumentor\n\ntrace.set_tracer_provider(TracerProvider())\ntrace.get_tracer_provider().add_span_processor(BatchSpanProcessor(ConsoleSpanExporter()))\n\napp = Flask(__name__)\nGunicornInstrumentor().instrument()\n```\n\nFor full examples and guidance, see the docs.\n",
"bugtrack_url": null,
"license": null,
"summary": "OpenTelemetry Instrumentation for Gunicorn WSGI Server",
"version": "0.1.0b1",
"project_urls": {
"Documentation": "https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/",
"Homepage": "https://github.com/Agent-Hellboy/opentelemetry-instrumentation-gunicorn",
"Repository": "https://github.com/Agent-Hellboy/opentelemetry-instrumentation-gunicorn"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "da39cf2d913e14a63cc17252b1cbae56d0da0bbd01d5f2804f982be5ceaa9a14",
"md5": "fb34b1b79d294ce1e91aebd741c47241",
"sha256": "beb661c7ceb3b44d799ef1915efbb54a16f1c249fe2d7065dc13a4489ad87c46"
},
"downloads": -1,
"filename": "opentelemetry_instrumentation_gunicorn-0.1.0b1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "fb34b1b79d294ce1e91aebd741c47241",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 11984,
"upload_time": "2025-10-25T05:05:35",
"upload_time_iso_8601": "2025-10-25T05:05:35.966685Z",
"url": "https://files.pythonhosted.org/packages/da/39/cf2d913e14a63cc17252b1cbae56d0da0bbd01d5f2804f982be5ceaa9a14/opentelemetry_instrumentation_gunicorn-0.1.0b1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "cddbe09c86a71813879ab59e54c79f02999c0350607a9bac375153e8ecb4a92f",
"md5": "0d3e387569cf1d2d71d51828721d6004",
"sha256": "cbc3b573a5e7efc144b6582b9cd3215f4592a490722f494b23f02ef59c04fa2c"
},
"downloads": -1,
"filename": "opentelemetry_instrumentation_gunicorn-0.1.0b1.tar.gz",
"has_sig": false,
"md5_digest": "0d3e387569cf1d2d71d51828721d6004",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 13700,
"upload_time": "2025-10-25T05:05:37",
"upload_time_iso_8601": "2025-10-25T05:05:37.226478Z",
"url": "https://files.pythonhosted.org/packages/cd/db/e09c86a71813879ab59e54c79f02999c0350607a9bac375153e8ecb4a92f/opentelemetry_instrumentation_gunicorn-0.1.0b1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-10-25 05:05:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Agent-Hellboy",
"github_project": "opentelemetry-instrumentation-gunicorn",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"tox": true,
"lcname": "opentelemetry-instrumentation-gunicorn"
}