OpenTelemetry Instrumentation for Gunicorn WSGI Server
Project description
OpenTelemetry Instrumentation for Gunicorn
Automatic OpenTelemetry tracing and metrics for Gunicorn WSGI servers.
- Documentation: https://agent-hellboy.github.io/opentelemetry-instrumentation-gunicorn/
- Quickstart: Quickstart Guide
- Installation: Installation Guide
- Configuration: Configuration Guide
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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opentelemetry_instrumentation_gunicorn-0.1.0b1.tar.gz.
File metadata
- Download URL: opentelemetry_instrumentation_gunicorn-0.1.0b1.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cbc3b573a5e7efc144b6582b9cd3215f4592a490722f494b23f02ef59c04fa2c
|
|
| MD5 |
0d3e387569cf1d2d71d51828721d6004
|
|
| BLAKE2b-256 |
cddbe09c86a71813879ab59e54c79f02999c0350607a9bac375153e8ecb4a92f
|
File details
Details for the file opentelemetry_instrumentation_gunicorn-0.1.0b1-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_instrumentation_gunicorn-0.1.0b1-py3-none-any.whl
- Upload date:
- Size: 12.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.23
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
beb661c7ceb3b44d799ef1915efbb54a16f1c249fe2d7065dc13a4489ad87c46
|
|
| MD5 |
fb34b1b79d294ce1e91aebd741c47241
|
|
| BLAKE2b-256 |
da39cf2d913e14a63cc17252b1cbae56d0da0bbd01d5f2804f982be5ceaa9a14
|