opentelemetry-test-utils
Test utilities for OpenTelemetry unit tests
Decision gist · record as of 2026-08-14
Yes, if you are developing OpenTelemetry instrumentation or testing SDK code. Install it as a test dependency (dev/test requirements) in projects that need to validate their own telemetry logic. Not needed for applications that only consume OpenTelemetry instrumentation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later; intended for use within test code, not production applications.
- Low install friction with a pure-Python wheel.
- Actively maintained as part of the OpenTelemetry project with a recent release (29 days ago) and active repository status.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), which allows free use, modification, and distribution with minimal restrictions.
last release 2026-07-16 (29 days) · last repo commit 2026-08-14 · 2,588 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 651,231 downloads/mo, #5,552 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-test-utils
from opentelemetry_test_utils import ...
# Use test utilities in your test suite- What specific test utilities and fixtures are included in this package
- Whether this package is intended for end-user testing or only for OpenTelemetry developers
- Compatibility guarantees with specific versions of opentelemetry-api and opentelemetry-sdk
What it is and what it does
OpenTelemetry Test Utils is a support package within the OpenTelemetry Python project that supplies test utilities and fixtures for writing unit tests. It is designed to help developers test OpenTelemetry instrumentation and SDK code by providing reusable testing helpers. The package depends on opentelemetry-api, opentelemetry-sdk, asgiref, and requests, making it part of the broader OpenTelemetry ecosystem.
This is a Beta-status package (Development Status :: 4 - Beta) that supports Python 3.10 through 3.14. It is maintained by the OpenTelemetry community and receives regular updates. The package is not intended as a standalone tool but rather as a dependency for projects that need to test their own OpenTelemetry instrumentation code.
Use it for
- Writing unit tests for custom OpenTelemetry instrumentation packages
- Testing OpenTelemetry SDK extensions and exporters
- Validating trace and metric collection in your instrumented application code
- Setting up test fixtures for telemetry-related test suites
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are developing OpenTelemetry instrumentation or testing SDK code.
Install it as a test dependency (dev/test requirements) in projects that need to validate their own telemetry logic. Not needed for applications that only consume OpenTelemetry instrumentation.
Install
opentelemetry-test-utils on PyPI
Before you install
Low install friction with a pure-Python wheel. Actively maintained as part of the OpenTelemetry project with a recent release (29 days ago) and active repository status.
Requires Python 3.10 or later; intended for use within test code, not production applications.
License in practice
Licensed under Apache-2.0 (permissive), which allows free use, modification, and distribution with minimal restrictions.
Quickstart
pip install opentelemetry-test-utils
from opentelemetry_test_utils import ...
# Use test utilities in your test suite
Verify before relying
- What specific test utilities and fixtures are included in this package
- Whether this package is intended for end-user testing or only for OpenTelemetry developers
- Compatibility guarantees with specific versions of opentelemetry-api and opentelemetry-sdk
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesasgirefopentelemetry-apiopentelemetry-sdkrequests |
| Maintenance | Actively maintained 29 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 651,231 / month, #5,552 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaFramework :: OpenTelemetryIntended Audience :: DevelopersProgramming 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_test_utils-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 › “opentelemetry testing utilities”
- opentelemetry-test-utilsProvides test utilities and helpers for writing unit tests for…
- otel-extensionsProvides helper classes, decorators, and functions to simplify setup…
- pytest-otelA pytest plugin that captures and exports OpenTelemetry spans for…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also opentelemetry-sdk · opentelemetry-api · opentelemetry-distro · opentelemetry-instrumentation-logging · opentelemetry-contrib-instrumentations · opentelemetry-semantic-conventions · opentelemetry-instrumentation-exceptions · opentelemetry-instrumentation · opentelemetry-instrumentation-openai-agents-v2 · opentelemetry-instrumentation-structlog