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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file openinference_instrumentation_codex-0.5.1.tar.gz.
File metadata
- Download URL: openinference_instrumentation_codex-0.5.1.tar.gz
- Upload date:
- Size: 118.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6d243b5e730c2dcb78afdd1e6883db6c7bf5ddb590aab98cb511af306931aa7
|
|
| MD5 |
a7b550c9502590f95816c9c36b723172
|
|
| BLAKE2b-256 |
9806209d33dc70b4662814b9a7486687d345207a7b9d3b14072a5d3fd1b9d8d6
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openinference_instrumentation_codex-0.5.1.tar.gz -
Subject digest:
c6d243b5e730c2dcb78afdd1e6883db6c7bf5ddb590aab98cb511af306931aa7 - Sigstore transparency entry: 1931468932
- Sigstore integration time:
-
Permalink:
openai-codex-demo/openinference-instrumentation-codex@c4d33c941278ad3a4cf6f178ef46573ff250f50c -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/openai-codex-demo
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yaml@c4d33c941278ad3a4cf6f178ef46573ff250f50c -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file openinference_instrumentation_codex-0.5.1-py3-none-any.whl.
File metadata
- Download URL: openinference_instrumentation_codex-0.5.1-py3-none-any.whl
- Upload date:
- Size: 39.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a31f0a27ef942d3ec345989ae31881fd34367a1d6f6cf208b2de7d7594da7d9
|
|
| MD5 |
c35e228d184abfff137662c0577381c1
|
|
| BLAKE2b-256 |
c29092e198e78620579ed86ce95c3f0e6b4226a7f2241d138704ac831ab1e666
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
openinference_instrumentation_codex-0.5.1-py3-none-any.whl -
Subject digest:
5a31f0a27ef942d3ec345989ae31881fd34367a1d6f6cf208b2de7d7594da7d9 - Sigstore transparency entry: 1931469091
- Sigstore integration time:
-
Permalink:
openai-codex-demo/openinference-instrumentation-codex@c4d33c941278ad3a4cf6f178ef46573ff250f50c -
Branch / Tag:
refs/tags/v0.5.1 - Owner: https://github.com/openai-codex-demo
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-package.yaml@c4d33c941278ad3a4cf6f178ef46573ff250f50c -
Trigger Event:
workflow_dispatch
-
Statement type: