$npx skillfedfor your agent

opentelemetry-instrumentation-wsgi

WSGI Middleware for OpenTelemetry

With conditionsPyPI MonitoringReleased Jul 202648.6M downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — opentelemetry_instrumentation_wsgi-0.65b0-py3-none-any.whl
v0.65b0 · released 2026-07-16 · Python >=3.10 · 4 runtime deps: opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, opentelemetry-util-http

Yes, if you are using a WSGI framework and need distributed tracing. The package is actively maintained, has no known vulnerabilities, low install friction, and permissive licensing. The beta status is typical for OpenTelemetry instrumentation libraries. Install it when you are ready to integrate your WSGI application into an observability pipeline.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; also requires a configured OpenTelemetry tracer provider to be active in your application.
  • Low install friction with a pure-Python wheel distribution.
  • Actively maintained as of 2026-07-16 with recent activity; part of the OpenTelemetry ecosystem which has broad community support.

License · maintenance · safety

Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions beyond attribution.

last release 2026-07-16 (29 days) · last repo commit 2026-08-13 · 1,086 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 48,603,783 downloads/mo, #589 on PyPI

Verify before relying

pip install opentelemetry-instrumentation-wsgi

from opentelemetry.instrumentation.wsgi import OpenTelemetryMiddleware
app = OpenTelemetryMiddleware(your_wsgi_app)
  • Whether the middleware automatically captures request/response headers and body content, or only timing metadata.
  • Performance overhead of the instrumentation under high request volume.
  • Compatibility with async WSGI frameworks or whether it is synchronous-only.
Same gist for agents: .md · .json

What it is and what it does

This package is a WSGI middleware component for the OpenTelemetry observability framework. It sits between your web application and the WSGI server, intercepting requests and responses to generate distributed tracing spans that record request timing and metadata. It works with any WSGI-compatible framework—Django, Flask, or others—without requiring framework-specific code changes.

The middleware integrates with OpenTelemetry's core instrumentation and semantic conventions libraries to emit spans that can be exported to tracing backends (Jaeger, Zipkin, etc.). It is currently in beta status and requires Python 3.10 or later. Installation is straightforward via pip, and it has low dependency friction with only four runtime dependencies, all from the OpenTelemetry project itself.

Use it for

  • Add distributed tracing to a Flask or Django application to track request latency across microservices.
  • Instrument a WSGI application to export request spans to a tracing backend for debugging production issues.
  • Monitor request timing and correlate logs with traces in a multi-service deployment.
  • Collect observability data from legacy WSGI frameworks without modifying application code.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are using a WSGI framework and need distributed tracing.

The package is actively maintained, has no known vulnerabilities, low install friction, and permissive licensing. The beta status is typical for OpenTelemetry instrumentation libraries. Install it when you are ready to integrate your WSGI application into an observability pipeline.

Install

opentelemetry-instrumentation-wsgi on PyPI

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained as of 2026-07-16 with recent activity; part of the OpenTelemetry ecosystem which has broad community support.

Requires Python 3.10 or later; also requires a configured OpenTelemetry tracer provider to be active in your application.

License in practice

Licensed under Apache-2.0 (permissive), allowing use in commercial and proprietary projects with minimal restrictions beyond attribution.

Quickstart

pip install opentelemetry-instrumentation-wsgi

from opentelemetry.instrumentation.wsgi import OpenTelemetryMiddleware
app = OpenTelemetryMiddleware(your_wsgi_app)

Verify before relying

  • Whether the middleware automatically captures request/response headers and body content, or only timing metadata.
  • Performance overhead of the instrumentation under high request volume.
  • Compatibility with async WSGI frameworks or whether it is synchronous-only.

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
opentelemetry-apiopentelemetry-instrumentationopentelemetry-semantic-conventionsopentelemetry-util-http
MaintenanceActively maintained 29 days since the last release
Last repo commit
First released
Downloads48,603,783 / month, #589 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14

Evidence: opentelemetry_instrumentation_wsgi-0.65b0-py3-none-any.whl

Tags

Capabilities
wsgi middleware tracingopentelemetry wsgi instrumentationrequest timing tracking wsgidistributed tracing django flaskwsgi request observabilityopentelemetry web frameworkwsgi span generation
Topics
observabilitydistributed-tracingwsgi

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “wsgi middleware tracing”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.

Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.

Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.

Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also opentelemetry-instrumentation-asgi · opentelemetry-instrumentation-flask · instana · opentelemetry-util-http · opentelemetry-instrumentation-django · opentelemetry-instrumentation-tornado · opentelemetry-instrumentation-pyramid · elastic-apm · opentelemetry-instrumentation-fastapi · opentelemetry-instrumentation-sklearn