Skip to main content

OpenInference traces for persisted Codex sessions and native OTLP telemetry

Project description

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

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openinference_instrumentation_codex-0.5.1.tar.gz (118.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file openinference_instrumentation_codex-0.5.1.tar.gz.

File metadata

File hashes

Hashes for openinference_instrumentation_codex-0.5.1.tar.gz
Algorithm Hash digest
SHA256 c6d243b5e730c2dcb78afdd1e6883db6c7bf5ddb590aab98cb511af306931aa7
MD5 a7b550c9502590f95816c9c36b723172
BLAKE2b-256 9806209d33dc70b4662814b9a7486687d345207a7b9d3b14072a5d3fd1b9d8d6

See more details on using hashes here.

Provenance

The following attestation bundles were made for openinference_instrumentation_codex-0.5.1.tar.gz:

Publisher: publish-package.yaml on openai-codex-demo/openinference-instrumentation-codex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openinference_instrumentation_codex-0.5.1-py3-none-any.whl.

File metadata

File hashes

Hashes for openinference_instrumentation_codex-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5a31f0a27ef942d3ec345989ae31881fd34367a1d6f6cf208b2de7d7594da7d9
MD5 c35e228d184abfff137662c0577381c1
BLAKE2b-256 c29092e198e78620579ed86ce95c3f0e6b4226a7f2241d138704ac831ab1e666

See more details on using hashes here.

Provenance

The following attestation bundles were made for openinference_instrumentation_codex-0.5.1-py3-none-any.whl:

Publisher: publish-package.yaml on openai-codex-demo/openinference-instrumentation-codex

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page