AI Cloud Architect

Build visibility for Codex on Amazon Bedrock with OpenTelemetry and Amazon CloudWatch

AWSHow-to by Claudio Mazzoni and Sudeesh SasidharanAWS Artificial Intelligence Blog

As engineering teams adopt coding agents like Codex, leaders need visibility into adoption, consumption, and reliability. This post shows how to route Codex OpenTelemetry metrics through a local collector to Amazon CloudWatch for an AWS native view of usage by user, team, and cost center.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Codex OTel metrics can be sent from a local collector on each workstation to Amazon CloudWatch, giving a dashboard of Codex usage by user, team and cost center without a central proxy in the inference path.

Who it is for

Engineering leaders and platform teams on AWS who need adoption and consumption visibility for Codex on Bedrock.

Key points

  • Metrics are sent with SigV4 to the regional CloudWatch OTLP endpoint; the publishing identity needs cloudwatch:PutMetricData.
  • The post says CloudWatch metrics show usage, not billing; realized spend should come from CUR 2.0.
  • Prompt logging is kept off (log_user_prompt = false), so the setup measures operational signals rather than prompt content.
  • The local collector cannot block Bedrock requests on a token budget; hard limits need an in-path gateway.

The same at other vendors

Timeline

  1. What it explainsAmazon CloudWatch announces coding agent insights · AWS · Announcement
  2. This postBuild visibility for Codex on Amazon Bedrock with OpenTelemetry and Amazon CloudWatch
  3. Read firstOpenAI Codex on Amazon Bedrock · AWS · How-to

Go deeper