opentelemetry-instrumentation-django
OpenTelemetry Instrumentation for Django
Decision gist · record as of 2026-08-14
Yes, with conditions. The package is actively maintained, has low install friction, and solves a real observability need for Django applications. However, it is in beta status (0.65b0), so production use should be evaluated carefully and tested thoroughly. No known vulnerabilities. Apache-2.0 license is permissive.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- Assumes an OpenTelemetry SDK and exporter are already configured in your application.
- Low friction install with a pure-Python wheel and active maintenance.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions.
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,381,180 downloads/mo, #592 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-instrumentation-django
from opentelemetry.instrumentation.django import DjangoInstrumentor
DjangoInstrumentor().instrument()- Whether this version (0.65b0) is production-ready or if a stable release is recommended for production deployments.
- Specific Django version compatibility range beyond what classifiers indicate.
- Performance overhead of instrumentation on typical Django request throughput.
What it is and what it does
This package integrates OpenTelemetry tracing into Django applications by automatically instrumenting HTTP request handling. It captures request metadata, timing, and errors, then exports that trace data to your configured OpenTelemetry backend. The instrumentation works at the WSGI layer through opentelemetry-instrumentation-wsgi, meaning it captures all incoming requests without requiring changes to individual Django views or middleware.
It's part of the OpenTelemetry Python ecosystem and depends on opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, and opentelemetry-util-http. The package is actively maintained and supports modern Python versions (3.10 through 3.14), though it remains in beta status. Use it when you need visibility into Django request flows, especially in microservice architectures where trace context must propagate across service boundaries.
Use it for
- Instrument a Django monolith to export request traces to Jaeger or Datadog for performance debugging.
- Propagate trace IDs across Django and downstream services to track request flows in a microservice architecture.
- Monitor Django endpoint latency and error rates by exporting traces to an OpenTelemetry collector.
- Correlate Django application logs with distributed traces for end-to-end request visibility.
- Measure and profile specific Django request handlers by examining generated span data.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, with conditions.
The package is actively maintained, has low install friction, and solves a real observability need for Django applications. However, it is in beta status (0.65b0), so production use should be evaluated carefully and tested thoroughly. No known vulnerabilities. Apache-2.0 license is permissive.
Install
opentelemetry-instrumentation-django on PyPI
Before you install
Low friction install with a pure-Python wheel and active maintenance. Released 29 days ago with recent commits, though the package is in beta status (0.65b0).
Requires Python 3.10 or later. Assumes an OpenTelemetry SDK and exporter are already configured in your application.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install opentelemetry-instrumentation-django
from opentelemetry.instrumentation.django import DjangoInstrumentor
DjangoInstrumentor().instrument()
Verify before relying
- Whether this version (0.65b0) is production-ready or if a stable release is recommended for production deployments.
- Specific Django version compatibility range beyond what classifiers indicate.
- Performance overhead of instrumentation on typical Django request throughput.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesopentelemetry-apiopentelemetry-instrumentation-wsgiopentelemetry-instrumentationopentelemetry-semantic-conventionsopentelemetry-util-http |
| Maintenance | Actively maintained 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 48,381,180 / month, #592 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None 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_django-0.65b0-py3-none-any.whl
Tags
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 › “django tracing instrumentation”
- opentelemetry-instrumentation-djangoAdds distributed tracing to Django applications by instrumenting HTTP…
- opentelemetry-util-httpProvides ASGI and WSGI middleware and HTTP utilities for…
- opentelemetry-instrumentation-wsgiProvides WSGI middleware for OpenTelemetry that automatically…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
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.
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.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
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.
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.
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.
See also opentelemetry-instrumentation-flask · opentelemetry-instrumentation-sklearn · opentelemetry-instrumentation-threading · openfeature-hooks-opentelemetry · otel-extensions · opentelemetry-propagator-ot-trace · opentelemetry-instrumentation-wsgi · opentelemetry-instrumentation-asyncio · opentelemetry-instrumentation-falcon · opentelemetry-instrumentation-redis