Use the stack you already own
Standard OTLP flows into SigNoz, Grafana, Datadog, Honeycomb, or any OpenTelemetry collector. There is no new vendor and no new console.
Governance · one view of agent activityagent-otel-bridge · OpenTelemetry for AI agents
agent-otel-bridge turns the lifecycle hooks of AI coding tools into standard OpenTelemetry traces and metrics. A 145 KB native hook returns in about 150 µs and fails open, so telemetry never blocks an agent turn.
cargo install agent-otel-bridge agent-otel-clientFor technology leadership
AI coding tools now take part in delivery, but their activity is scattered across incompatible local logs. Leaders can't yet answer basic questions: what agents are doing, where the time goes, when they change state, and how close teams are to provider limits.
Standard OTLP flows into SigNoz, Grafana, Datadog, Honeycomb, or any OpenTelemetry collector. There is no new vendor and no new console.
Governance · one view of agent activityCommands are classified into ten behavioural archetypes, from inspection and search to build-and-test, state mutation, and network transfer, so dashboards separate reading from changing.
Risk · see when agents mutate stateQuota metrics for the tools actually installed report remaining headroom and time to reset, so teams can plan agent capacity rather than discover limits mid-task.
Cost · headroom before limits hitagent-otel-bridge gives leadership an evidence base for AI-assisted engineering — adoption, behaviour, and capacity — on the observability standard the organization already invests in, at a cost to developers measured in microseconds.
For adopters
You need Rust's cargo (or a release archive) and an OpenTelemetry collector endpoint. Ready-made SigNoz dashboards are included.
Both crates are published on crates.io. Pre-built archives are also available from GitHub Releases.
cargo install agent-otel-bridge cargo install agent-otel-client
Installs versioned binaries to an isolated per-user path, records SHA-256 integrity hashes, and registers canonical hook paths idempotently.
agent-otel-bridge local install
Detects installed Antigravity, Claude Code, Codex, Grok, and Pi, and configures their lifecycle hooks. You can also target one client.
agent-otel-bridge install-hooks
# or: --client claude | codex | antigravity
agent-otel-bridge hooks statusStandard OpenTelemetry environment variables choose the destination and resource attributes.
OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4318 OTEL_RESOURCE_ATTRIBUTES=deployment.environment=dev
A five-point diagnostic checks environment, IPC, the collector, the observability UI, and every hook registration.
agent-otel-bridge doctor
Import the SigNoz dashboards for agent observability, developer velocity, fleet governance, fleet operations, and agent SRE loops from contrib/dashboards/signoz ↗.
For technologists
Hooks run synchronously inside every agent turn, and script-based hooks pay process start-up costs on each call. agent-otel-bridge splits the work: a tiny native client on the hot path, an asynchronous batcher off it.
{} and exits 0; the agent turn continues.invoke_agent and execute_tool spans with gen_ai.* attributes, plus workspace, VCS, archetype, and quota attributes.traceparent propagates through environment variables, so Antigravity → Claude Code → Codex chains appear as one trace..git; credentials are stripped from URLs, and git is never spawned on the telemetry path.Figures are the project's own measurements; methodology and raw data are in docs/BENCHMARKS.md ↗. Reproduce them with agent-otel-bench.
Status and boundaries
An honest picture for platform teams evaluating agent telemetry.
| Release | 0.5.2, published on crates.io as agent-otel-bridge and agent-otel-client, with release archives on GitHub. Pre-1.0: expect attribute and configuration changes between minor versions. |
|---|---|
| Platforms | Linux, macOS, and Windows. |
| Agent tools | Google Antigravity, Claude Code, OpenAI Codex, xAI Grok, and Pi. |
| Data handling | Runs locally and exports only to the OTLP endpoint you configure. Remote URLs are sanitized of credentials before export. |
| Licence | Apache-2.0. |
Questions
Short answers for platform engineers, security reviewers, and engineering managers.
The hook is designed for microsecond overhead and has a hard 3 ms fail-open deadline. If anything goes wrong, the agent continues and only telemetry is lost.
No. It emits standard OTLP traces and metrics to any OpenTelemetry collector. SigNoz dashboards are provided as a starting point.
It is designed around lifecycle events, tool names, command archetypes, token counts, workspace and VCS context, and quota metrics rather than conversation content, and it strips credentials from remote URLs. Review the telemetry dictionary ↗ for the complete attribute list, and filter in your collector where policy requires.
Native telemetry differs by tool and rarely links parent and child agents. The bridge gives one semantic model and one trace across tools. The trade-offs are discussed in WHY_AGENT_OTEL_BRIDGE.md ↗.
No. It shuts down after 30 minutes without agent activity.
Instrument one workstation, open a trace, and decide from evidence how agents are really being used.
Built by Samuel Mota · Move the Needle
Open source · Apache-2.0 · 0.5.2 on crates.io
See what AI coding agents actually do, including adoption, behaviour, and quota headroom, in the observability stack you already run.
Agent activity is now part of software delivery, so it deserves the same evidence base as production systems. Standard OTLP and GenAI semantic conventions avoid yet another vendor console.
A 145 KB native hook with a 3 ms fail-open watchdog on the hot path, a three-byte IPC frame, and an asynchronous micro-batcher that classifies commands into behavioural archetypes and links multi-agent chains with W3C trace context.
Where this shows up in practice
Platforms & reliability