Answer: To enable OTel monitoring for Codex, add an `[otel]` block to your Codex configuration (typically `~/.codex/config.toml`), choosing an exporter and whether to log prompt text. Status: Confirmed Entry: tool/codex/features/enable-otel-monitoring Revision: 2 Digest: sha256:b21f5236596da99e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:47:04Z Last changed: 2026-11-19T13:25:18Z (Environment options: — → dev | staging | prod) Last verified: 2026-11-20T13:34:41Z Next check: 2026-11-21T13:34:41Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Configuration location | ~/.codex/config.toml | [1] | 2026-11-20 Exporter options | none | otlp-http | otlp-grpc | [1] | 2026-11-20 Default exporter | none | [1] | 2026-11-20 Log user prompt default | false | [1] | 2026-11-20 Environment options | dev | staging | prod | [1] | 2026-11-20 Sources: [1] OpenAI. "Agent approvals & security". https://learn.chatgpt.com/docs/agent-approvals-security.md Role: primary. Accessed: 2026-11-20T13:34:41Z Quote: "Add an `[otel]` block to your Codex configuration (typically `~/.codex/config.toml`), choosing an exporter and whether to log prompt text." (Supports: Configuration location) Quote: "exporter = "none" # none | otlp-http | otlp-grpc" (Supports: Exporter options, Default exporter) Quote: "log_user_prompt = false # redact prompt text unless policy allows" (Supports: Log user prompt default) Quote: "environment = "staging" # dev | staging | prod" (Supports: Environment options) Snapshot SHA-256: fa9553edc8b520d62f0c0cf6a26382347beab09b9ff872ae04409fa3bd97a257 (captured 2026-11-18T13:28:47Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-18T13:28:49Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:34:41Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:34:41Z Last attempt: 2026-11-20T13:34:41Z Notes and limitations: Extracted automatically from a single official source (section "Enable OTel (opt-in)"). Related: https://latestn.com/tool/codex/features/false-positive-feedback How does false-positive feedback work in Codex Security CLI? https://latestn.com/tool/codex/features/find-reviews-needing-attention How do I find Codex code reviews that need attention? https://latestn.com/tool/codex/features/first-scan-baseline How do I use my first Codex Security scan as a baseline? https://latestn.com/tool/codex/features/codex-environment-types What is the difference between Local, Worktree, and Cloud Codex environments? https://latestn.com/tool/codex/features/default-universal-image What is the default universal image used in Codex Cloud environments? https://latestn.com/tool/codex/features/enable-feature-flags How do I enable feature flags in Codex? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:25:18Z | changed | Environment options: — → dev | staging | prod | [1] 2026-11-19T13:25:18Z | changed | Log user prompt default: — → false | [1] 2026-11-19T13:25:18Z | changed | Default exporter: — → none | [1] 2026-11-19T13:25:18Z | changed | Exporter options: — → none | otlp-http | otlp-grpc | [1] 2026-11-19T13:25:18Z | changed | Configuration location: — → ~/.codex/config.toml | [1] 2026-11-19T13:25:18Z | changed | environment options: dev | staging | prod → — | [1] 2026-11-19T13:25:18Z | changed | log_user_prompt default: false → — | [1] 2026-11-19T13:25:18Z | changed | exporter options: none | otlp-http | otlp-grpc → — | [1] 2026-11-19T13:25:18Z | changed | configuration file: ~/.codex/config.toml → — | [1] 2026-11-13T03:47:04Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/features/enable-otel-monitoring/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/features/enable-otel-monitoring POST: https://latestn.com/dispute/tool/codex/features/enable-otel-monitoring with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/features/enable-otel-monitoring?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I enable OpenTelemetry (OTel) monitoring for Codex? Revision 2, last verified 2026-11-20T13:34:41Z. https://latestn.com/tool/codex/features/enable-otel-monitoring (accessed 2026-11-21T10:04:44Z). @misc{LatestN_tool_codex_features_enable_otel_monitoring_r2, title = {How do I enable OpenTelemetry (OTel) monitoring for Codex?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/features/enable-otel-monitoring}}, note = {Revision 2; digest sha256:b21f5236596da99e; last verified 2026-11-20T13:34:41Z; accessed 2026-11-21T10:04:44Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/features/enable-otel-monitoring