{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/10"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/11"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"}],"enrichment":{"capability":"A pytest plugin that captures and exports OpenTelemetry spans for each test execution, sending trace data to an OTLP-compatible backend.","skillfed_tags":["observability","distributed-tracing","testing"],"use_cases":["Export test execution traces to Jaeger for visual debugging of slow or flaky tests.","Correlate test failures with application traces in Elastic Stack or other APM tools.","Monitor test suite performance over time by analyzing span data in your observability platform.","Link test execution spans to distributed traces from CI/CD pipelines or deployment systems.","Debug test interactions with external services by viewing spans alongside application instrumentation."],"what_it_does":"pytest-otel is a pytest plugin that integrates OpenTelemetry tracing into your test runs. It wraps test execution in spans and exports them to an OTLP-compatible backend (such as Jaeger or Elastic APM), allowing you to observe test performance and behavior through your observability stack. The plugin is configured via command-line flags or environment variables and supports both gRPC and HTTP/protobuf OTLP protocols.\n\nYou provide an OpenTelemetry endpoint URL, service name, and optional headers, then run pytest with the plugin enabled. Each test becomes a span in your trace backend, where you can inspect execution time, failures, and correlate test runs with other system traces. The plugin supports dotenv files for managing configuration and allows trace parent IDs to be passed in for linking to upstream traces.","worth_installing":"Yes, if you already run an OpenTelemetry collector and want to observe test execution within your observability stack. The plugin is actively maintained, has low install friction, and is permissively licensed. Install only if you have an OTLP endpoint available and a clear use case for tracing test runs; it adds a runtime dependency on three OpenTelemetry packages and requires Python 3.10+."},"id":"pytest-otel","links":{"html":"https://skillfed.io/packages/pytest-otel","md":"https://skillfed.io/packages/pytest-otel.md","pypi":"https://pypi.org/project/pytest-otel/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-29","license_spdx":null,"license_treatment":"permissive","name":"pytest-otel","python_support":"supports_current","summary":"OpenTelemetry plugin for Pytest"},"popularity":{"monthly_downloads":89003,"position":13685,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.4.0"}
