Skip to main content

openinference-instrumentation-codex

This PyPI package exports Codex activity as OpenInference codex.turn traces from persisted sessions or native OTLP telemetry

Install

python -m pip install "openinference-instrumentation-codex[otlp]"

Quick Start

Persisted Sessions

export OTEL_TRACES_EXPORTER=otlp
export OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf
export OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://localhost:6006/v1/traces

codex-jsonl-forwarder --codex-home "${CODEX_HOME:-$HOME/.codex}" \
  --state-path .run/codex-jsonl-forwarder-state.json

Native OTLP

Create the receiver configuration in docs/AGENTS.details.md, then run

codex-otlp-interceptor --config codex-interceptor.toml
curl --fail http://127.0.0.1:4318/readyz

/readyz succeeds only while the receiver accepts new requests and its configured trace sink accepts an authenticated empty OTLP request. Native input fields are redacted for common bearer, API-key, sk-proj-*, and sk-svcacct-* credentials.

Surface Map

Surface Input Output
codex-jsonl-forwarder $CODEX_HOME/sessions/**/*.jsonl Standalone OpenInference turn traces
codex-otlp-interceptor Native OTLP logs and traces Native-timed OpenInference turn traces

Repo Map

Path Purpose
src/openinference/instrumentation/codex/ Package implementation
tests/ Unit, integration, end-to-end, and evidence coverage
tests/fixtures/native_otlp/ Reviewed native telemetry summaries
scripts/ Capture, smoke, and artifact helpers
examples/ Minimal Python examples
docs/ Detailed guidance and diagrams
.github/ CI and package publishing workflows

Documentation

Document Purpose
AGENTS.md Repo routing and quick start
docs/AGENTS.details.md Contracts, configuration, evidence, and validation
docs/DIAGRAMS.md Package data-flow diagrams
docs/CONTRIBUTING.md Contribution guide
docs/SECURITY.md Security reporting
CHANGELOG.md Release history

Metadata

Release files for openinference-instrumentation-codex 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openinference-instrumentation-codex 0.5.2
File Size Uploaded Provenance Actions
openinference_instrumentation_codex-0.5.2.tar.gz 132.9 kB With provenance Details for openinference_instrumentation_codex-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openinference-instrumentation-codex 0.5.2
File Interpreter ABI Platform Actions
openinference_instrumentation_codex-0.5.2-py3-none-any.whl Python 3 none any Details for openinference_instrumentation_codex-0.5.2-py3-none-any.whl

Total release size: 175.6 kB

Release files / openinference_instrumentation_codex-0.5.2.tar.gz

Download URL openinference_instrumentation_codex-0.5.2.tar.gz
Size 132.9 kB
Tags Source
SHA-256 checksum
How to use checksums
52f8af1ef536afe7aeba6d2417a8c5e81888c52fada5cbabc1bb054f0bd76d94
BLAKE2b-256 checksum
How to use checksums
027e19d2ff02f12731594254cfe11a5a2c8b30e1ed1b89af2c15471ba55a2487
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.

Transparency log

Release files / openinference_instrumentation_codex-0.5.2-py3-none-any.whl

Download URL openinference_instrumentation_codex-0.5.2-py3-none-any.whl
Size 42.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c927e4b1ce3226992eb056c47a1cd6c2c6fbb7f698f3ae61955713ab6b91428f
BLAKE2b-256 checksum
How to use checksums
ea988fbe325dd374ba8f599a51907fd85fdacefa1e26b793f0af1cf84037614b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.

Transparency log

Security for openinference-instrumentation-codex 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openinference_instrumentation_codex-0.5.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 8, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page