Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

otel-cli

$ otel-cli Official Low Risk
Equinix Labs · Workspace & SaaS · Apache-2.0 · macos / linux / windows

otel-cli (equinix-labs/otel-cli) is a Go CLI for sending OpenTelemetry traces and spans from shell scripts and CI/CD pipelines. Provides otel-cli span, otel-cli exec (wrapping subprocesses with W3C TRACEPARENT propagation), otel-cli status, and otel-cli server for local OTLP trace inspection.

FCRS-1.0 Score
81 /100
Good
Medium Confidence
Zero-Friction Install
brew install otel-cli
CLI vs MCP Decision CLI Only

otel-cli wraps local shell subprocesses (otel-cli exec) and propagates TRACEPARENT across child processes in CI/CD scripts.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Non-interactive Go binary following standard OTEL_EXPORTER_OTLP_* env vars and --tp-print context propagation, though focused on emitting traces rather than JSON queries.

  • Non-interactive span and exec subcommands with standard OTel env vars
  • --tp-print outputs TRACEPARENT cleanly for shell chaining
Trust & Safety 23 / 25

Low-risk stateless exporter; only emits telemetry spans to the configured OTLP collector without modifying workspace files or storing credentials.

  • Stateless operation via OTEL_EXPORTER_OTLP_* env vars
Setup & Portability 13 / 15

Single static Go binary available via Homebrew, go install, and GitHub Releases on macOS, Linux, and Windows.

  • Installable via brew install otel-cli and static release binaries
Utility & Efficiency 11 / 15

Solves shell and CI pipeline tracing cleanly with exec and W3C TRACEPARENT propagation, though it focuses on traces/spans rather than OTLP metrics.

  • Wraps arbitrary shell commands in OpenTelemetry spans via otel-cli exec
Maintenance & Lineage 7 / 10

Maintained by Equinix Labs (equinix-labs/otel-cli) under Apache-2.0 license.

  • Apache-2.0 open-source repository by Equinix Labs
Docs & Verifiability 7 / 10

Documented on ReadTheDocs and GitHub README with clear span, exec, and TRACEPARENT examples.

  • Docs at open-telemetry-cli.readthedocs.io

Security, Auth & Guardrails

Auth Modes
No Auth Env API Key
Credential Storage

Stateless CLI; reads standard OpenTelemetry env vars (OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS) for collector auth without storing local credentials.

Side Effects
Read-Only Remote Write
Cost & Quotas

Apache-2.0 open-source CLI; free to use with any OTLP collector or observability backend.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# otel-cli Agent Rules
- Configure `OTEL_EXPORTER_OTLP_ENDPOINT` and `OTEL_EXPORTER_OTLP_HEADERS` via env vars instead of hardcoding tokens.
- Check `otel-cli status` before instrumenting long CI scripts.
- Avoid `otel-cli server tui` inside non-interactive agent shells as it starts a blocking terminal UI.

Agent-Ready Command Recipes

Safe Read-Only Queries

Send a canary span and dump OTLP config status
otel-cli status

Prints resolved OpenTelemetry exporter configuration and checks collector connectivity.

Controlled Writes & Previews

Trace a CI build step with otel-cli exec
otel-cli exec --service ci-runner --name "unit-tests" --attrs "branch=main" -- npm test

Executes npm test inside a timed OpenTelemetry span and exports it to the configured OTLP endpoint.

Strengths for Agents

  • + Zero-dependency static Go binary adhering to standard OTEL_EXPORTER_OTLP_* and TRACEPARENT conventions.
  • + otel-cli exec instruments arbitrary shell and CI commands with minimal boilerplate.

Caveats & Pitfalls

  • ! Focuses on OpenTelemetry traces and spans (span, exec, server), not native OTLP metric counters.
  • ! otel-cli server tui is an interactive terminal UI unsuitable for headless shells.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI