Auto-discovered marketplace from hrntknr/otel-cli
npx claudepluginhub hrntknr/otel-cliInspects OpenTelemetry traces, logs, and metrics from a local OTLP server. Use when the user needs to debug distributed traces, inspect application logs, check metrics, or troubleshoot observability issues during development.
Official prompts.chat marketplace - AI prompts, skills, and tools for Claude Code
Behavioral guidelines to reduce common LLM coding mistakes, derived from Andrej Karpathy's observations
Claude Code plugins for the Slidev presentation framework
Share bugs, ideas, or general feedback.
curl -fsSL https://raw.githubusercontent.com/hrntknr/otel-cli/main/install.sh | sh
/plugin marketplace add hrntknr/otel-cli
/plugin install otel-cli@otel-cli
The skill definition includes instructions for installing the otel-cli binary if it is not already available on your system.
Running skill-install places the skill definition where your agent can discover it.
otel-cli skill-install
This installs the skill into your current project (./.claude/skills/otel-cli/SKILL.md). You can also install it globally so it is available across all projects:
otel-cli skill-install --global
If the skill file already exists, pass --force to overwrite it. See otel-cli skill-install --help for all available options.
otel-cli server
This launches an interactive TUI where you can inspect traces, logs, and metrics in real-time.
Configure your application's OTLP exporter to send to localhost:4317 (gRPC) or localhost:4318 (HTTP).
As data arrives, it appears live in the TUI.
# With interactive TUI (default)
otel-cli server
# Headless mode
otel-cli server --no-tui
# Custom listen addresses
otel-cli server --grpc-addr 0.0.0.0:5317 --http-addr 0.0.0.0:5318 --query-addr 0.0.0.0:5319
# Larger store capacity
otel-cli server --max-traces 5000 --max-spans 200000 --max-logs 5000 --max-metrics 5000
# Self-instrumentation (send own traces to an OTLP endpoint)
otel-cli server --otlp-endpoint http://localhost:4317
# Attach TUI to a running server
otel-cli view
otel-cli view --server http://remote-host:4319
# List recent traces
otel-cli traces
# Filter by service name
otel-cli traces --service myapp
# Follow new traces in real-time
otel-cli traces -f
# Follow with full trace groups (not just new spans)
otel-cli traces -f --full
# Filter by time range
otel-cli traces --since 5m --format jsonl
# List recent logs
otel-cli logs
# Filter by severity (shows this level and above)
otel-cli logs --severity ERROR
# Follow logs in real-time
otel-cli logs -f --service myapp
# List recent metrics
otel-cli metrics
# Filter by metric name
otel-cli metrics --name http_requests_total
# Follow metrics in real-time
otel-cli metrics -f --format jsonl
# Query traces with SQL
otel-cli sql "SELECT * FROM traces WHERE service_name = 'myapp'"
# Query logs with SQL
otel-cli sql "SELECT * FROM logs WHERE severity >= 'ERROR'"
# Select specific columns
otel-cli sql "SELECT span_name, duration_ns FROM traces LIMIT 10"
# Filter by attributes using bracket syntax
otel-cli sql "SELECT * FROM traces WHERE attributes['http.method'] = 'GET'"
# Follow mode with SQL
otel-cli sql -f "SELECT * FROM logs"
# CSV output
otel-cli sql "SELECT * FROM metrics" --format csv
# Show the trace ID of the query request itself (for self-instrumentation debugging)
otel-cli sql "SELECT * FROM traces LIMIT 10" --show-trace-id
# Check server status (trace/log/metric counts)
otel-cli status
# Clear all data
otel-cli clear --traces --logs --metrics
# Clear only traces
otel-cli clear --traces
# Shutdown the server
otel-cli shutdown
| Option | Description |
|---|---|
--server <ADDR> | Query server address (default: http://localhost:4319) |
--service <NAME> | Filter by service name |
--attribute <KEY=VALUE> | Filter by attribute (repeatable) |
--limit <N> | Maximum results (default: 100) |
--format <FORMAT> | Output format: text, table, jsonl, csv |
-f, --follow | Follow new data in real-time |
--since <SPEC> | Time range start (30s, 5m, 1h, 2d, or RFC3339) |
--until <SPEC> | Time range end (same format) |
This project uses Conventional Commits for commit messages. Examples: