opentelemetry-instrumentation-threading
Thread context propagation support for OpenTelemetry
Install
opentelemetry-instrumentation-threading on PyPI
pip
pip install opentelemetry-instrumentation-threadinguv
uv add opentelemetry-instrumentation-threadingpoetry
poetry add opentelemetry-instrumentation-threadingPackage facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — opentelemetry-api, opentelemetry-instrumentation, wrapt |
| Maintenance | actively maintained — 28 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: opentelemetry_instrumentation_threading-0.65b0-py3-none-any.whl
About opentelemetry-instrumentation-threading
from the package's own PyPI description — quoted content, verbatim
OpenTelemetry threading Instrumentation
|pypi|
.. |pypi| image:: https://badge.fury.io/py/opentelemetry-instrumentation-threading.svg :target: https://pypi.org/project/opentelemetry-instrumentation-threading/
This library provides instrumentation for the threading module to ensure that
the OpenTelemetry context is propagated across threads. It is important to note
that this instrumentation does not produce any telemetry data on its own. It
merely ensures that the context is correctly propagated when threads are used.
Installation
::
pip install opentelemetry-instrumentation-threading
References
OpenTelemetry Threading Tracing <https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/threading/threading.html>_OpenTelemetry Project <https://opentelemetry.io/>_
Read as markdown · JSON record · Source repository · Homepage
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Propagates OpenTelemetry context across Python threads, ensuring tracing context remains consistent when using the threading module. It does not generate telemetry itself but ensures context is correctly passed between threads.
Low friction install with a pure-wheel distribution and only three runtime dependencies (opentelemetry-api, opentelemetry-instrumentation, wrapt). Actively maintained with a recent release 28 days old and ongoing commits.
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, typical for OpenTelemetry ecosystem packages.
Usage
pip install opentelemetry-instrumentation-threading
from opentelemetry.instrumentation.threading import ThreadingInstrumentor
ThreadingInstrumentor().instrument()
Requires Python 3.10 or later; assumes opentelemetry-api and opentelemetry-instrumentation are already configured in your tracing setup.
Verdict: A lightweight, actively maintained beta instrumentation package for propagating OpenTelemetry context across threads. Low install friction, no known vulnerabilities, and permissive licensing make it a safe addition to tracing-enabled applications. The beta status and lack of standalone telemetry output mean it is a context-propagation utility rather than a primary observability tool.
Needs verification
- Whether context propagation works correctly with all threading patterns (daemon threads, thread pools, asyncio integration).
- Performance overhead of instrumentation in high-concurrency scenarios.
- Compatibility with third-party thread pool libraries beyond stdlib threading.
Similar packages
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-aiohttp-clientpermissive · top 1,000 on PyPI
opencensus-contextpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-redispermissive · top 1,000 on PyPI
opentelemetry-instrumentation-flaskpermissive · top 1,000 on PyPI
opentelemetry-instrumentation-sqlalchemypermissive · top 1,000 on PyPI
opentelemetry-instrumentation-psycopg2permissive · top 1,000 on PyPI
opentelemetry-instrumentation-dbapipermissive · top 1,000 on PyPI
opentelemetry-instrumentation-fastapipermissive · top 1,000 on PyPI
threadpoolctlpermissive · top 1,000 on PyPI