OpenTelemetry is the open standard for traces, metrics, and logs, and it now has semantic conventions for generative AI and agent spans. Several coding agents can export OpenTelemetry data or call hooks on every tool use, which gives you an audit trail you control.
Read in this order
- OfficialMonitoring (Claude Code Docs)Start here: turn on OpenTelemetry export from a real coding agent.
- OfficialHooks reference (Claude Code Docs)Run your own code on every tool call to log, block, or approve it.
- Open sourceOpenTelemetry semantic conventions for generative AIThe standard field names for tracing model calls and agent steps.