/codex-observability:opentelemetry-codexfrom codex-observability
Installs and configures OpenTelemetry instrumentation for Codex workflows, including OTLP exporter setup, collector endpoint wiring, and validation of telemetry emission.
Ships in codex-observability. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when the operator asks to add OpenTelemetry (OTEL) instrumentation or telemetry export for Codex workflows in a repository.
Direct trigger phrase: Install OpenTelemetry.
Accept input as: PROJECT_PATH OTLP_ENDPOINT MODE
Mode:
plan: produce an implementation plan onlyexecute (default): apply configuration and validate telemetry emissionExamples:
$opentelemetry-codex /path/to/repo http://127.0.0.1:4318 execute$opentelemetry-codex /path/to/repo https://otel-collector.internal:4318 planconfig.toml blocks, not shell env vars.PROJECT_PATH/OpenTelemetry.PROJECT_PATH/OpenTelemetry/install_opentelemetry.sh exists, prefer it as the default implementation path for consistency across clones.config.toml:[otel]service_name = "codex-agent" (or project-specific service name)log_user_prompt = true (when operator wants prompt logging)exporter = "otlp-http"[otel.exporter."otlp-http"]endpoint = "<OTLP_ENDPOINT>"protocol = "json" (use binary when compact transport is preferred)otlp-http, otlp-grpc, statsig, none) and valid protocol values when applicable.OTEL_* shell environment variables for primary wiring."$PROJECT_PATH/OpenTelemetry/install_opentelemetry.sh" when available."$PROJECT_PATH/OpenTelemetry/run_codex_with_otel.sh" for user-friendly operation.file exporter writing to:
"$PROJECT_PATH/OpenTelemetry/otel-logs.jsonl""$PROJECT_PATH/OpenTelemetry/otel-traces.jsonl" (if traces are persisted locally)Add a minimal smoke operation that should emit telemetry (single request/task run).
Validate:
"$PROJECT_PATH/OpenTelemetry" are created and non-empty when file export is enabled.When instrumenting Codex workflows, capture at least:
planner, researcher, etc.),Do not export secrets, raw credentials, or full sensitive payloads in spans/logs. Use redaction or attribute allow-lists for safety.
For each implementation, include:
config.toml OTEL blocks),PROJECT_PATH/OpenTelemetry,What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub specterops/skills --plugin codex-observability2 skills in this plugin
Other plugins' skills for the same job