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.0.tar.gz (116.4 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.0.tar.gz.

File metadata

File hashes

Hashes for openinference_instrumentation_codex-0.5.0.tar.gz
Algorithm Hash digest
SHA256 28cd7ee066f7f48fd80f111949dcc364a257a7575b0c087286d5dc30b67d09bf
MD5 881d0db04c43227ef7cd2d64d6997c57
BLAKE2b-256 c7fc32513d9e4b40ff3f5e90b813b25dc056f022940082aa6e85fc0c35f46b74

See more details on using hashes here.

Provenance

The following attestation bundles were made for openinference_instrumentation_codex-0.5.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for openinference_instrumentation_codex-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbf9d3e49bff2a7d8cbc193e0ed261d9352dbf725ec745e059ddff6ee08c0d95
MD5 9a05f9b80b51368d5d0eef1c76e8daa6
BLAKE2b-256 bf0c832be8cab04e1e641058a909850546fc1ff75e198e085267284e3eb5d008

See more details on using hashes here.

Provenance

The following attestation bundles were made for openinference_instrumentation_codex-0.5.0-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