opentracing
OpenTracing API for Python. See documentation at http://opentracing.io
Decision gist · record as of 2026-08-14
No. The package is abandoned (repository archived, no releases since 2020-11-19, last commit 2022-07-01) and the OpenTracing standard itself has been superseded by OpenTelemetry. While the API remains stable and has no known vulnerabilities, new projects should adopt OpenTelemetry instead. Use this only if you are maintaining legacy code that already depends on it.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- The package is abandoned; no active maintenance or support.
- Classifiers list Python 2.7, 3.5–3.7; compatibility with modern Python versions is unverified.
- High install friction; the package is abandoned (last commit 2022-07-01, repository archived) and has not been released in over 3 years.
License · maintenance · safety
Apache License 2.0 (permissive) — Licensed under Apache License 2.0 (permissive). You may use, modify, and distribute this package freely in commercial and open-source projects, provided you include the license notice.
last release 2020-11-19 (2094 days) · last repo commit 2022-07-01 · 750 stars · archived
0 known vulnerabilities (OSV.dev, 2026-08-14) · 812,864 downloads/mo, #4,998 on PyPI
Alternatives
Verify before relying
pip install opentracing==2.4.0
import opentracing
from opentracing.scope_managers import ThreadLocalScopeManager
tracer = opentracing.Tracer(scope_manager=ThreadLocalScopeManager())
with tracer.start_active_span('operation_name', finish_on_close=True) as scope:
scope.span.set_tag('key', 'value')- Whether the API remains compatible with modern Python versions beyond those listed in classifiers (3.5–3.7)
- Whether instrumentation libraries and tracer implementations built on this API are still actively maintained
- Current state of the OpenTracing specification and whether it has been superseded by OpenTelemetry or other standards
What it is and what it does
OpenTracing is a vendor-neutral API specification for distributed tracing in Python. It defines interfaces for creating spans (units of work), managing trace context across service boundaries, and propagating tracing information through HTTP headers or other carriers. The library itself provides only the API contract and a basic no-op implementation; actual tracing backends (like Zipkin or Jaeger) are implemented separately by instrumentation libraries.
The package is designed for use by framework and library authors who want to instrument their code to participate in distributed traces. It handles three core tasks: extracting trace context from inbound requests, storing the active span in request-local storage via a ScopeManager, and injecting trace context into outbound calls. Multiple ScopeManager implementations are included for thread-local, gevent, Tornado, asyncio, and contextvars-based storage.
Use it for
- Instrument a web service to extract and propagate trace context from incoming HTTP requests to child spans for outbound calls
- Create a custom ScopeManager for an async framework to manage active spans across coroutines or tasks
- Build an instrumentation library that wraps a third-party service client to automatically create and tag spans for each call
- Integrate with a tracing backend by implementing a Tracer that records spans and sends them to a collector
- Propagate trace IDs across microservices to correlate logs and metrics from a single user request
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (repository archived, no releases since 2020-11-19, last commit 2022-07-01) and the OpenTracing standard itself has been superseded by OpenTelemetry. While the API remains stable and has no known vulnerabilities, new projects should adopt OpenTelemetry instead. Use this only if you are maintaining legacy code that already depends on it.
Install
opentracing on PyPI
Before you install
High install friction; the package is abandoned (last commit 2022-07-01, repository archived) and has not been released in over 3 years. No runtime dependencies, but maintenance has ceased entirely.
The package is abandoned; no active maintenance or support. Classifiers list Python 2.7, 3.5–3.7; compatibility with modern Python versions is unverified.
License in practice
Licensed under Apache License 2.0 (permissive). You may use, modify, and distribute this package freely in commercial and open-source projects, provided you include the license notice.
Quickstart
pip install opentracing==2.4.0
import opentracing
from opentracing.scope_managers import ThreadLocalScopeManager
tracer = opentracing.Tracer(scope_manager=ThreadLocalScopeManager())
with tracer.start_active_span('operation_name', finish_on_close=True) as scope:
scope.span.set_tag('key', 'value')
Verify before relying
- Whether the API remains compatible with modern Python versions beyond those listed in classifiers (3.5–3.7)
- Whether instrumentation libraries and tracer implementations built on this API are still actively maintained
- Current state of the OpenTracing specification and whether it has been superseded by OpenTelemetry or other standards
Package facts
| License | Apache License 2.0 permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,094 days since the last release |
| Last repo commit | repository archived |
| First released | |
| Downloads | 812,864 / month, #4,998 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 2.7Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: Implementation :: PyPyTopic :: Software Development :: Libraries :: Python Modules |
Evidence: opentracing-2.4.0.tar.gz
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 › “distributed tracing api”
- opentracingProvides the OpenTracing API for Python, enabling distributed tracing…
- opentelemetry-instrumentation-botoAdds distributed tracing to AWS SDK (Boto) calls by instrumenting…
- openinference-instrumentation-portkeyAutomatically instruments Portkey AI API calls with OpenTelemetry…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also opentelemetry-instrumentation-boto · opentelemetry-propagator-ot-trace · jaeger-client · azure-core-tracing-opentelemetry · openinference-instrumentation-mcp · opencensus-ext-flask · opentelemetry-instrumentation-django · opentelemetry-instrumentation-threading · opentelemetry-instrumentation-urllib · opentelemetry-instrumentation