Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

OpenTelemetry Instrumentation for Gunicorn

PyPI - Version Python versions Documentation CI

Automatic OpenTelemetry tracing and metrics for Gunicorn WSGI servers.

Install

pip install opentelemetry-instrumentation-gunicorn opentelemetry-api opentelemetry-sdk

Minimal Usage (Flask)

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.

Metadata

Release files for opentelemetry-instrumentation-gunicorn 0.1.0b1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opentelemetry-instrumentation-gunicorn 0.1.0b1
File Size Uploaded
opentelemetry_instrumentation_gunicorn-0.1.0b1.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opentelemetry-instrumentation-gunicorn 0.1.0b1
File Interpreter ABI Platform
opentelemetry_instrumentation_gunicorn-0.1.0b1-py3-none-any.whl Python 3 none any Details

Total release size: 25.7 kB

Release files / opentelemetry_instrumentation_gunicorn-0.1.0b1.tar.gz

Download URL opentelemetry_instrumentation_gunicorn-0.1.0b1.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cbc3b573a5e7efc144b6582b9cd3215f4592a490722f494b23f02ef59c04fa2c
BLAKE2b-256 checksum
How to use checksums
cddbe09c86a71813879ab59e54c79f02999c0350607a9bac375153e8ecb4a92f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release files / opentelemetry_instrumentation_gunicorn-0.1.0b1-py3-none-any.whl

Download URL opentelemetry_instrumentation_gunicorn-0.1.0b1-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
beb661c7ceb3b44d799ef1915efbb54a16f1c249fe2d7065dc13a4489ad87c46
BLAKE2b-256 checksum
How to use checksums
da39cf2d913e14a63cc17252b1cbae56d0da0bbd01d5f2804f982be5ceaa9a14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

0.1.0b1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page