Skip to main content

OpenTelemetry Instrumentation for Gunicorn WSGI Server

Project description

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.

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

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_instrumentation_gunicorn-0.1.0b1.tar.gz.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_gunicorn-0.1.0b1.tar.gz
Algorithm Hash digest
SHA256 cbc3b573a5e7efc144b6582b9cd3215f4592a490722f494b23f02ef59c04fa2c
MD5 0d3e387569cf1d2d71d51828721d6004
BLAKE2b-256 cddbe09c86a71813879ab59e54c79f02999c0350607a9bac375153e8ecb4a92f

See more details on using hashes here.

File details

Details for the file opentelemetry_instrumentation_gunicorn-0.1.0b1-py3-none-any.whl.

File metadata

File hashes

Hashes for opentelemetry_instrumentation_gunicorn-0.1.0b1-py3-none-any.whl
Algorithm Hash digest
SHA256 beb661c7ceb3b44d799ef1915efbb54a16f1c249fe2d7065dc13a4489ad87c46
MD5 fb34b1b79d294ce1e91aebd741c47241
BLAKE2b-256 da39cf2d913e14a63cc17252b1cbae56d0da0bbd01d5f2804f982be5ceaa9a14

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