{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"A pytest plugin that instruments test runs with OpenTelemetry, exporting span and timing data to trace backends like Jaeger for performance analysis and debugging.","skillfed_tags":["observability","performance-profiling","distributed-tracing"],"use_cases":["Identify which tests or fixtures are slowest in a large test suite to prioritize optimization efforts.","Visualize integration test execution against a staging environment using Jaeger to debug failures faster.","Connect test traces to application traces when testing OpenTelemetry-instrumented services to see end-to-end behavior.","Debug local test performance issues by running pytest-opentelemetry locally and inspecting traces in Jaeger.","Track test suite runtime trends over time by exporting traces to a persistent backend for historical analysis."],"what_it_does":"pytest-opentelemetry is a pytest plugin that automatically captures detailed timing and execution data from your test runs as OpenTelemetry spans, then exports them to a tracing backend. It integrates seamlessly with pytest as a plugin\u2014just install it and use the --export-traces flag to start collecting traces. By default it sends data to http://localhost:4317 (an OpenTelemetry Collector), which you can redirect to visualization tools like Jaeger.\n\nThe plugin helps identify test bottlenecks and performance regressions by giving you a detailed timeline of what your tests are doing. It works especially well with applications already instrumented with OpenTelemetry, letting you see the full stack from test code through database queries and network calls. It also supports pytest-xdist for distributed test runs, automatically unifying traces across multiple processes or hosts, and can nest test runs under a parent trace via the --trace-parent argument.","worth_installing":"Yes, if you already use or plan to adopt OpenTelemetry for observability and want detailed visibility into test performance. The plugin is actively maintained, has no known vulnerabilities, and integrates cleanly with pytest. Install it if you need to profile test bottlenecks or correlate test execution with application traces; skip it if you have no observability infrastructure or don't need test-level tracing."},"id":"pytest-opentelemetry","links":{"html":"https://skillfed.io/packages/pytest-opentelemetry","md":"https://skillfed.io/packages/pytest-opentelemetry.md","pypi":"https://pypi.org/project/pytest-opentelemetry/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-04-25","license_spdx":null,"license_treatment":"permissive","name":"pytest-opentelemetry","python_support":"supports_current","summary":"A pytest plugin for instrumenting test runs via OpenTelemetry"},"popularity":{"monthly_downloads":1205304,"position":4225,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.1.0"}
