# Otel tracing

> Otel tracing is an open-source agent skill for developer tools. Guides an agent through OpenTelemetry tracing exported to Grafana Tempo and queried. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ajyadav013/claude-kit/tree/main/skills/otel-tracing
- **Repository:** https://github.com/ajyadav013/claude-kit
- **GitHub stars:** 13
- **License:** MIT
- **Skill name:** otel-tracing
- **Collection:** https://github.com/ajyadav013/claude-kit
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill gives the agent a reference for designing distributed tracing with the OpenTelemetry data model, exporting spans over OTLP through an optional Collector into Grafana Tempo. It covers the standard OTEL_* environment variable contract, endpoint and port pitfalls, SDK initialization order, and span processor settings.

It also covers sampling strategy, comparing head-based SDK samplers with Collector tail sampling and a hybrid production pattern, plus Tempo's architecture, retention settings, metrics-generator output and TraceQL query syntax. Correlation guidance covers injecting trace IDs into logs, exemplars linking metrics to traces, and service graphs. The skill ships reference files for instrumentation, the Collector, sampling, Tempo, correlation and common gotchas, and it runs no scripts.

The skill is language-neutral and expects the agent to work with OpenTelemetry SDKs, the Collector configuration and Tempo deployment in the user's own stack. It points app-side logging, error tracking and LLM tracing to separate skills.

## When your agent uses it

> Vendor-neutral distributed tracing with OpenTelemetry exported to Grafana Tempo (OTel model, Collector pipeline, sampling, TraceQL). Do NOT use for app-side observability setup or LLM call tracing.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/otel-tracing)
- [License: MIT](https://github.com/ajyadav013/claude-kit/tree/HEAD/skills/otel-tracing)

## Features

- **OpenTelemetry data model:** Explains traces, spans, span context, attributes, events, status and resource semantics.
- **Env-var configuration contract:** Lists the standard OTEL_* variables for endpoints, protocols, sampling, service name and limits.
- **Collector pipeline design:** Covers receivers, processors, exporters and the loadbalancing exporter needed for tail sampling.
- **Sampling strategy guidance:** Compares head-based and tail-based sampling and a hybrid pattern keeping errors and slow traces.
- **Tempo and TraceQL reference:** Describes Tempo components, retention defaults, metrics-generator output and TraceQL operators.
- **Trace correlation patterns:** Covers trace ID injection into logs, exemplars from metrics to traces, and service graphs.

## Good for

- Set up OpenTelemetry export from a service to Grafana Tempo
- Design a Collector pipeline with tail sampling for error and slow traces
- Write a TraceQL query to find slow requests for one service
- Debug why traces from my service are missing in Tempo
- Link application logs to traces by adding trace IDs

## Install

### Claude Code

This skill ships in the `claude-kit` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ajyadav013/claude-kit
/plugin install claude-kit@claude-kit
```

Or copy only this skill to `~/.claude/skills/otel-tracing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/otel-tracing &&
cp -R "$tmp/skills/otel-tracing" ~/.claude/skills/otel-tracing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/otel-tracing` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/otel-tracing` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/otel-tracing &&
cp -R "$tmp/skills/otel-tracing" ~/.agents/skills/otel-tracing &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/otel-tracing` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/otel-tracing` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/otel-tracing &&
cp -R "$tmp/skills/otel-tracing" ~/.cursor/skills/otel-tracing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/otel-tracing` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ajyadav013/claude-kit.git --path skills/otel-tracing
```

Or copy the folder to `~/.gemini/skills/otel-tracing` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/otel-tracing`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/otel-tracing &&
cp -R "$tmp/skills/otel-tracing" ~/.copilot/skills/otel-tracing &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/otel-tracing` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ajyadav013/claude-kit.git
```

Then copy `claude-kit/skills/otel-tracing` into your agent's skills folder as `otel-tracing`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Otel tracing cover beyond app-side observability?

It covers the vendor-neutral OpenTelemetry pipeline and Tempo backend, including the data model, OTLP, Collector topology, sampling, propagation and TraceQL. App-side logging, error tracking and LLM tracing are handled by separate skills it names.

### Does Otel tracing run any scripts or need extra tools?

No scripts are included. It is instructional material, and the agent works with the OpenTelemetry SDKs, Collector and Tempo setup in the user's project.

### Which environment variables does Otel tracing describe?

It documents the standard OTEL_* variables such as OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_SERVICE_NAME, OTEL_TRACES_SAMPLER and OTEL_TRACES_SAMPLER_ARG, with their defaults.

### When does the skill apply?

It applies when tasks involve multi-service tracing, correlating logs with traces, configuring OpenTelemetry with Tempo, deriving RED metrics from spans, sampling traces, or querying with TraceQL.

### How do I install Otel tracing in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/otel-tracing to use it in all your projects, or to .claude/skills/otel-tracing in one project. Or install the claude-kit plugin, which includes it: /plugin marketplace add ajyadav013/claude-kit, then /plugin install claude-kit@claude-kit.

### Does Otel tracing run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Otel tracing?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Otel tracing?

The closest alternatives to Otel tracing are Ollygarden otel SDK setup, Observability and instrumentation, Ollygarden otel manual instrumentation, Ollygarden otel js setup and Ollygarden otel java setup.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Ollygarden otel SDK setup](https://ai-powered.com/skills/ollygarden-otel-sdk-setup): Ollygarden otel SDK setup is an open-source agent skill for developer tools.
- [Observability and instrumentation](https://ai-powered.com/skills/observability-and-instrumentation): Observability and instrumentation is an open-source agent skill for developer tools.
- [Ollygarden otel manual instrumentation](https://ai-powered.com/skills/ollygarden-otel-manual-instrumentation): Ollygarden otel manual instrumentation is an open-source agent skill for developer tools.
- [Ollygarden otel js setup](https://ai-powered.com/skills/ollygarden-otel-js-setup): Ollygarden otel js setup is an open-source agent skill for developer tools.
- [Ollygarden otel java setup](https://ai-powered.com/skills/ollygarden-otel-java-setup): Ollygarden otel java setup is an open-source agent skill for developer tools.
- [Phoenix tracing](https://ai-powered.com/skills/phoenix-tracing): Phoenix tracing is an open-source agent skill for developer tools.
- [Go observability](https://ai-powered.com/skills/go-observability): Go observability is an open-source agent skill for developer tools.
- [Trace diagram](https://ai-powered.com/skills/trace-diagram): Trace diagram is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/otel-tracing-ajyadav013-2
