Skip to main content

Codex Open Telemetry Direct Setup Integration

Codex Open Telemetry Direct Setup Integration. This document outlines the configuration required to set up Codex OpenTelemetry collection on each developer machine On each developer machine, change t…

Codex Open Telemetry Direct Setup Integration


This document outlines the configuration required to set up Codex OpenTelemetry collection on each developer machine

  • On each developer machine, change the config.tomland add:
[otel]
          environment = "prod"
          log_user_prompt = false
          
          [otel.exporter."otlp-http"]
          endpoint="https://otel.targetboard.ai/otlp/v1/logs"
          protocol="binary"
          
          [otel.exporter."otlp-http".headers]
          "x-tb-otel-key"="<org key>"
          
          [otel.metrics_exporter."otlp-http"]
          endpoint="https://otel.targetboard.ai/otlp/v1/metrics"
          protocol="binary"
          
          [otel.metrics_exporter."otlp-http".headers]
          "x-tb-otel-key"="<org key>"
          
          [analytics]
          enabled=true
  • On each developer machine, add to your shell profile (~/.zshrc or ~/.bashrc):
export OTEL_RESOURCE_ATTRIBUTES="organization.name=<org_name>,user.email=<email>"
  • Reload your shell profile using source ~/.zshrcor source ~/.bashrc
  • Restart Codex for settings to take effect.

How did we do?

Ashby Integration

Contact