OpenTelemetry plugin for Pytest that automatically traces test execution, fixtures, and assertions. Currently at version 2.2.1, with monthly releases following OpenTelemetry SDK updates.
pip install pytest-otelNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
After installing, the plugin hooks into pytest automatically. Set OpenTelemetry environment variables to configure exporters and service name.
Upgrade to 2.2.1, remove any monkey-patching of internal methods, and ensure your OpenTelemetry SDK is >=1.20.
Replace `--otel-exporter` with `export OTEL_EXPORTER_OTLP_ENDPOINT=<endpoint>`.
Manually instrument subprocesses using OpenTelemetry's propagator context extraction.
Install the OTLP exporter: `pip install opentelemetry-exporter-otlp`.
Do not call the plugin's internal methods. Rely on environment configuration only.
Set the OTEL_TRACES_EXPORTER environment variable to a valid exporter, e.g., `export OTEL_TRACES_EXPORTER=otlp`.
No dependency data recorded yet.
No resource links recorded.