OpenAI Codex Observability & Monitoring with OpenTelemetry OpenAI Codex users can now monitor their AI coding assistant's performance by integrating OpenTelemetry with SigNoz, enabling the export of traces and logs for observability. The setup requires a SigNoz cloud account or self-hosted instance, a ChatGPT subscription or OpenAI API key, and configuration changes to Codex's config.toml file to enable OTLP export. This integration allows developers to track metrics and debug Codex usage through detailed trace and log views in SigNoz. Overview OpenAI Codex https://developers.openai.com/codex/ is an AI-powered coding assistant designed to help developers write, understand, and debug code through natural language interactions. It translates natural language into code and can work across multiple programming languages. This guide walks you through setting up observability and monitoring for OpenAI Codex using OpenTelemetry https://opentelemetry.io/ and exporting traces and logs to SigNoz. With this integration, you can observe and track various metrics for your Codex AI coding assistant usage. Prerequisites - A SigNoz Cloud account https://signoz.io/teams/ with an active ingestion key or Self Hosted SigNoz instance https://signoz.io/docs/install/self-host/ - ChatGPT Plus, Pro, Business, Edu, or Enterprise subscription, or an OpenAI API key obtainable from the OpenAI Platform https://platform.openai.com/api-keys - Internet access to send telemetry data to SigNoz and make API calls to OpenAI Monitoring Codex Step 1: Set up Codex For more information on getting started with Codex in your environment, refer to the Codex quickstart guide https://developers.openai.com/codex/quickstart/ . Install the Codex extension for your IDE: Download for Visual Studio Code vscode:extension/openai.chatgpt Download for Cursor cursor:extension/openai.chatgpt Download for Windsurf windsurf:extension/openai.chatgpt Download for Visual Studio Code Insiders https://marketplace.visualstudio.com/items?itemName=openai.chatgpt Once installed, the Codex extension appears in the sidebar alongside your other extensions. It may be hidden in the collapsed section. You can move the Codex panel to the right side of the editor if you prefer. Sign in with your ChatGPT account or API key to get started. Codex starts in Agent mode by default, which lets it read files, run commands, and write changes in your project directory. Codex can modify your codebase, so consider creating Git checkpoints before and after each task so you can easily revert changes if needed. The Codex CLI is supported on macOS, Windows, and Linux. Install with your preferred package manager: Install with npm: npm install -g @openai/codex Install with Homebrew: brew install codex Run codex in your terminal to get started. You’ll be prompted to sign in with your ChatGPT account or an API key. Once authenticated, you can ask Codex to perform tasks in the current directory. Codex can modify your codebase, so consider creating Git checkpoints before and after each task so you can easily revert changes if needed. Step 2: Enable OpenTelemetry OTel export to track Codex runs For more information on setting up telemetry for Codex, refer to the Codex observability guide https://developers.openai.com/codex/config-advanced observability-and-telemetry . Codex stores its configuration at ~/.codex/config.toml . Append the following to ~/.codex/config.toml : otel log user prompt = true exporter = { otlp-grpc = { endpoint = "https://ingest.