Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By guicauladav0.3.0Apache-2.0In 1 marketplace
OpenTelemetry traces, metrics, and logs from Claude Code hook lifecycle events
Run automatically on Claude Code events. Claude doesn't decide.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
otel, opentelemetry, observability, telemetry, traces, metrics, logs
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
OpenTelemetry traces, metrics, and logs from Claude Code hook lifecycle events.
A Claude Code plugin that provides in-depth observability of your Claude Code sessions — traces with full span hierarchy, enriched metrics with rich dimensions, and log records for every hook event.
claude plugin marketplace add https://github.com/guicaulada/claude-plugins
claude plugin install otel@guicaulada-plugins
--plugin-dir (development)git clone https://github.com/guicaulada/claude-plugins.git
cd claude-plugins/plugins/otel
make build
claude --plugin-dir .
The plugin reuses Claude Code's OTel environment variables. Set CLAUDE_CODE_ENABLE_TELEMETRY=1 or OTEL_PLUGIN_ENABLED=1 to enable.
| Variable | Description |
|---|---|
CLAUDE_CODE_ENABLE_TELEMETRY | Master switch. Plugin respects this unless OTEL_PLUGIN_ENABLED overrides. |
OTEL_PLUGIN_ENABLED | Plugin-specific toggle. 1 enables even if telemetry is off. 0 disables. |
The plugin reads standard OTEL_EXPORTER_OTLP_* env vars automatically. Plugin-specific overrides:
| Variable | Description |
|---|---|
OTEL_EXPORTER_OTLP_ENDPOINT | OTLP endpoint (read by SDK automatically) |
OTEL_EXPORTER_OTLP_HEADERS | Auth headers (read by SDK automatically) |
OTEL_EXPORTER_OTLP_PROTOCOL | Protocol: http/protobuf, http/json, grpc |
OTEL_PLUGIN_EXPORTER_OTLP_ENDPOINT | Plugin-specific endpoint override |
OTEL_PLUGIN_EXPORTER_OTLP_HEADERS | Plugin-specific headers override |
OTEL_PLUGIN_EXPORTER_OTLP_PROTOCOL | Plugin-specific protocol override |
OTEL_PLUGIN_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE | Temporality override: delta or cumulative (overrides OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE). See Metrics Temporality |
OTEL_RESOURCE_ATTRIBUTES | Custom resource attributes (read by SDK) |
| Variable | Description | Default |
|---|---|---|
OTEL_LOG_USER_PROMPTS | Include prompt content, task descriptions, compact instructions in logs | 0 (disabled) |
OTEL_LOG_TOOL_DETAILS | Include tool input details (bash commands, file paths, patterns, URLs) in logs | 0 (disabled) |
OTEL_PLUGIN_METRICS_INCLUDE_HIGH_CARDINALITY | Include high-cardinality attributes (cwd, VCS context) on metrics | 0 (disabled) |
| Variable | Description |
|---|---|
otelHeadersHelper | Script in Claude settings that outputs JSON headers (e.g., {"Authorization": "Bearer ..."}) |
CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS | Header refresh interval (default: 1740000ms / 29 min). Shared across sessions. |
| Variable | Description |
|---|---|
OTEL_PLUGIN_DEBUG | Set to 1 to enable debug logging to $TMPDIR/claude-code-otel-plugin/debug.log |
This example shows how to send telemetry from the plugin to Grafana Cloud using Grafana Alloy as a local collector. Alloy receives OTLP over HTTP, converts delta metrics to cumulative (required by Grafana Cloud / Prometheus), and forwards everything to Grafana Cloud.
Add the following blocks to your Alloy configuration file (e.g., config.alloy). If you already have an existing otelcol.receiver.otlp block, merge the outputs rather than adding a duplicate receiver.
otelcol.receiver.otlp "default" {
http {}
output {
metrics = [otelcol.processor.deltatocumulative.default.input]
traces = [otelcol.exporter.otlphttp.grafana.input]
logs = [otelcol.exporter.otlphttp.grafana.input]
}
}
otelcol.processor.deltatocumulative "default" {
output {
metrics = [otelcol.exporter.otlphttp.grafana.input]
}
}
otelcol.exporter.otlphttp "grafana" {
client {
endpoint = "<grafana cloud otlp endpoint>"
auth = otelcol.auth.basic.grafana.handler
}
}
otelcol.auth.basic "grafana" {
username = "<grafana cloud id>"
password = "<grafana cloud token>"
}
Replace <grafana cloud otlp endpoint>, <grafana cloud id>, and <grafana cloud token> with your Grafana Cloud OTLP values.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub guicaulada/claude-plugins --plugin otelPlugins from other owners that cover similar ground