otel-ruby

otel-ruby is a skill for Claude Code from ollygarden/opentelemetry-agent-skills. It costs 127 tokens per session (905 once invoked), scanned A, original, Apache-2.0.

A Ruby toolkit for adding OpenTelemetry, a standard way to record traces, metrics, and logs from an application. It covers setup, manual recording, and automatic instrumentation for Ruby web apps, databases, and background jobs.

In plain words
What is it for?
Use it to add or review OpenTelemetry in Ruby, Rails, Rack, Sinatra, or Sidekiq services, including exporters, request tracking, context propagation, performance tuning, and upgrades.
Why use it?
It helps you see what an application is doing and where requests slow down or fail. It also explains how to configure telemetry safely and handle Ruby and library version changes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the opentelemetry-agent-skills plugin — 21 skills shipped together

Good fit Use it to add or review OpenTelemetry in Ruby, Rails, Rack, Sinatra, or Sidekiq services, including exporters, request tracking, context propagation, performance tuning, and upgrades.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ollygarden/opentelemetry-agent-skills/otel-ruby
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ollygarden/opentelemetry-agent-skills --skill otel-ruby
Clone the repo
git clone --depth 1 https://github.com/ollygarden/opentelemetry-agent-skills

Made for: Claude Code.

Or install opentelemetry-agent-skills, the plugin that ships this one along with the rest of its 21 skills.

Its marketplace also offers this one on its own, as the plugin otel-ruby — /plugin install otel-ruby after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for otel-ruby

README.md
[![agentmods](https://agentmods.dev/badge/skills/ollygarden/opentelemetry-agent-skills/otel-ruby/github.svg)](https://agentmods.dev/skills/ollygarden/opentelemetry-agent-skills/otel-ruby)
Your own site
<a href="https://agentmods.dev/skills/ollygarden/opentelemetry-agent-skills/otel-ruby"><img src="https://agentmods.dev/badge/skills/ollygarden/opentelemetry-agent-skills/otel-ruby/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for otel-ruby

Your own site · 80×15
<a href="https://agentmods.dev/skills/ollygarden/opentelemetry-agent-skills/otel-ruby"><img src="https://agentmods.dev/badge/skills/ollygarden/opentelemetry-agent-skills/otel-ruby.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 905 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00127 $0.00905
Opus 5.5 $0.00051 $0.00362
Sonnet 5.5 $0.00025 $0.00181
Haiku 4.5 $0.00013 $0.00090

Measured 7d ago against content hash e66d2be449ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

otel-ruby scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/otel-ruby/SKILL.md · 52 lines

How it starts

The opening of the file, as written. The whole thing — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenTelemetry in Ruby

Entry point for OpenTelemetry mechanics in Ruby applications. Load only the reference that matches the task; each reference is self-contained.

References

File Use when
references/setup.md Installing gems, configuring OpenTelemetry::SDK.configure, selecting OTLP exporters, setting resources and environment variables, and handling process shutdown.
references/api.md Writing manual traces, metrics, or logs; managing context and propagation; testing emitted telemetry.
references/instrumentation-libraries.md Selecting and configuring contrib instrumentation for Rails, Rack, Sinatra, HTTP clients, databases, jobs, messaging, and other gems.
references/performance.md Tuning sampling, batching, cardinality, forked-process behavior, exporters, and lifecycle handling.
references/breaking-changes.md Reviewing Ruby/runtime compatibility, independently versioned gems, experimental signal changes, and core/contrib upgrades.

Signal stability matters

Tracing uses the stable opentelemetry-api and opentelemetry-sdk gems. Ruby metrics and logs are separate 0.x API, SDK, and exporter gems and remain experimental. Do not assume a tracing gem's version exists for metrics, logs, semantic conventions, exporters, or contrib instrumentation. Resolve each gem independently with Bundler, inspect its changelog, and keep the resulting Gemfile.lock change under review.

This skill covers tracing API 1.11.1, tracing SDK 1.13.1, trace OTLP exporter 0.37.0; metrics API 0.10.0, SDK 0.22.0, OTLP exporter 0.15.0; logs API 0.7.0, SDK 0.8.1, OTLP exporter 0.7.0. The experimental declarative-config gem opentelemetry-config 0.2.0 (targets schema v1.0.0-rc.3) is owned by the otel-declarative-config parsers table. This set is not a version-alignment rule; use the lookups below for newer releases.

Read the full file on GitHub · 52 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago Changed e66d2be449ef
  2. 1mo ago Changed 2160727118c5
  3. 1mo ago Changed 27cbf3559c47
  4. 1mo ago Changed · +1 lines 7d7962f4943a
  5. 1mo ago Changed · +1 lines 7195fe754d21
  6. 2mo ago Changed 058b33f75ce0
  7. 2mo ago First seen · 50 lines · 127 tokens per session scan A fef85b3030f7

Subscribe to this mod's changes

otel-ruby is a skill published in the GitHub repository ollygarden/opentelemetry-agent-skills (126 stars, last pushed yesterday), licensed Apache-2.0. It adds 127 tokens to every session and 905 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

otel-ruby compared with skills from other repositories

otel-ruby next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
otel-rubyollygarden/opentelemetry-agent-skillsSkill126yesterdayApache-2.0A127Claude Code
opentelemetry-net-instrumentationAaronontheweb/dotnet-skillsSkill1.3k10d agoMITA56Claude Code
golang-observabilityseaworld008/Commonly-used-high-value-skillsSkill75yesterdayMITA31Claude Code, Codex
debugging-with-wide-eventsadammiribyan/wide_eventsSkill1126d agoMITA54Claude Code, Codex
setting-up-wide-events-storeadammiribyan/wide_eventsSkill1126d agoMITA58Claude Code, Codex
instrumenting-wide-eventsadammiribyan/wide_eventsSkill1126d agoMITA0Claude Code, Codex
golang-observability-opentelemetrybobmatnyc/claude-mpm-skillsSkill794mo agoMITA31Claude Code