NEW Browse AI tools across categories — updated daily. See what's new →

Otel Instrumentation

Configures trace spans, defines custom metrics, sets up log exporters, and optimizes sampling strategies for OpenTelemetry instrumentation. Use when…

Authordash0hq
Version1.0.0
LicenseMIT
Token count~1,138
UpdatedJun 5, 2026

Install

Quick install

via npx skills · works with 57+ agents
npx skills add https://github.com/dash0hq/agent-skills/tree/HEAD/skills/otel-instrumentation
Or pick agent:
npx skills add dash0hq/agent-skills --skill otel-instrumentation --agent claude-code
npx skills add dash0hq/agent-skills --skill otel-instrumentation --agent cursor
npx skills add dash0hq/agent-skills --skill otel-instrumentation --agent codex
npx skills add dash0hq/agent-skills --skill otel-instrumentation --agent opencode
npx skills add dash0hq/agent-skills --skill otel-instrumentation --agent github-copilot
npx skills add dash0hq/agent-skills --skill otel-instrumentation --agent windsurf
More install options

Shorthand — useful for multi-skill repos:

npx skills add dash0hq/agent-skills --skill otel-instrumentation

Manual — clone the repo and drop the folder into your agent's skills directory:

git clone https://github.com/dash0hq/agent-skills.git
cp -r agent-skills/skills/otel-instrumentation ~/.claude/skills/
How to use: Once installed, ask your agent to "use the otel-instrumentation skill" or describe what you want (e.g. "Configures trace spans, defines custom metrics, sets up log exporters, and optim"). Requires Node.js 18+.

otel-instrumentation

Configures trace spans, defines custom metrics, sets up log exporters, and optimizes sampling strategies for OpenTelemetry instrumentation. Use when…

otel-instrumentationby dash0hq

Configures trace spans, defines custom metrics, sets up log exporters, and optimizes sampling strategies for OpenTelemetry instrumentation. Use when…

npx skills add https://github.com/dash0hq/agent-skills --skill otel-instrumentationDownload ZIPGitHub

OpenTelemetry Instrumentation Guide

Expert guidance for implementing high-quality, cost-efficient OpenTelemetry telemetry.

Rules & Quick Reference

Use Case / RuleDescriptiontelemetryEntrypoint — signal types, correlation, and navigationresolve-valuesResolving configuration values from the codebaseresourcesResource attributes — service identity and environmentk8sKubernetes deployment — downward API, pod specspansSpans — naming, kind, status, and hygienelogsLogs — structured logging, severity, trace correlationmetricsMetrics — instrument types, naming, units, cardinalitysensitive-dataSensitive data — PII prevention, sanitization, redactioncapture-database-query-parametersPrepared-statement parameter capture per language (Java, .NET, Python, Node.js, Go)validationTelemetry validation — post-deployment verification checklistnodejsNode.js instrumentation setupgoGo instrumentation setuppythonPython instrumentation setupjavaJava instrumentation setupscalaScala instrumentation setupdotnet.NET instrumentation setuprubyRuby instrumentation setupphpPHP instrumentation setupbrowserBrowser instrumentation setupnextjsNext.js full-stack instrumentation (App Router)

Official documentation

  • OpenTelemetry Documentation
  • Semantic Conventions
  • Dash0 Integration Hub

Getting started

Follow these steps when instrumenting an application from scratch:

  • Pick your SDK rule — choose the language-specific rule from the table above (e.g., nodejs, python).
  • Set up resource attributes — define service identity and environment per resources.
  • Add spans, metrics, and logs — instrument your code following spans, metrics, and logs.
  • Guard sensitive data — scrub PII before export per sensitive-data.
  • Validate — confirm telemetry reaches the backend using the checklist in validation.

The snippet below shows a complete span with attributes and status for Node.js — see nodejs for full setup including SDK initialisation, exporter configuration, and auto-instrumentation:

`const { trace, SpanStatusCode } = require('@opentelemetry/api');
const tracer = trace.getTracer('my-service', '1.0.0');

tracer.startActiveSpan('operation-name', async (span) => {
try {
span.setAttribute('user.id', userId);
span.setAttribute('order.id', orderId);

const result = await processOrder(orderId);

span.setAttribute('order.status', result.status);
span.setStatus({ code: SpanStatusCode.OK });
return result;
} catch (err) {
span.setStatus({ code: SpanStatusCode.ERROR, message: err.message });
span.recordException(err);
throw err;
} finally {
span.end();
}
});
`

Key principles

Signal density over volume

Every telemetry item should serve one of three purposes:

  • Detect - Help identify that something is wrong
  • Localize - Help pinpoint where the problem is
  • Explain - Help understand why it happened

If it doesn't serve one of these purposes, don't emit it.

Sample in the pipeline, not the SDK

Use the AlwaysOn sampler (the default) in every SDK.
Do not configure SDK-side samplers — they make irreversible decisions before the outcome of a request is known.
Defer all sampling to the Collector, where policies can be changed centrally without redeploying applications.

`SDK (AlwaysOn) → Collector (sampling) → Backend (retention)
↓ ↓ ↓
All spans Head or tail Storage policies
exported sampling applied
`

More skills from dash0hq

otel-collectorby dash0hqExpert guidance for configuring and deploying the OpenTelemetry Collector. Use when setting up a Collector pipeline, configuring receivers, exporters, or…otel-ottlby dash0hqOpenTelemetry Transformation Language (OTTL) expert. Use when writing or debugging OTTL expressions for any OpenTelemetry Collector component that supports…otel-semantic-conventionsby dash0hqOpenTelemetry Semantic Conventions expert. Use when selecting, applying, or reviewing telemetry attributes. Triggers on tasks involving attribute selection,…

---

Source: https://github.com/dash0hq/agent-skills/tree/HEAD/skills/otel-instrumentation
Author: dash0hq
Discovered via: mcpservers.org

SKILL.md source

---
name: otel-instrumentation
description: Configures trace spans, defines custom metrics, sets up log exporters, and optimizes sampling strategies for OpenTelemetry instrumentation. Use when…
---

# otel-instrumentation

Configures trace spans, defines custom metrics, sets up log exporters, and optimizes sampling strategies for OpenTelemetry instrumentation. Use when…

# otel-instrumentationby dash0hq
Configures trace spans, defines custom metrics, sets up log exporters, and optimizes sampling strategies for OpenTelemetry instrumentation. Use when…

`npx skills add https://github.com/dash0hq/agent-skills --skill otel-instrumentation`Download ZIPGitHub

## OpenTelemetry Instrumentation Guide

Expert guidance for implementing high-quality, cost-efficient OpenTelemetry telemetry.

## Rules & Quick Reference

Use Case / RuleDescriptiontelemetryEntrypoint — signal types, correlation, and navigationresolve-valuesResolving configuration values from the codebaseresourcesResource attributes — service identity and environmentk8sKubernetes deployment — downward API, pod specspansSpans — naming, kind, status, and hygienelogsLogs — structured logging, severity, trace correlationmetricsMetrics — instrument types, naming, units, cardinalitysensitive-dataSensitive data — PII prevention, sanitization, redactioncapture-database-query-parametersPrepared-statement parameter capture per language (Java, .NET, Python, Node.js, Go)validationTelemetry validation — post-deployment verification checklistnodejsNode.js instrumentation setupgoGo instrumentation setuppythonPython instrumentation setupjavaJava instrumentation setupscalaScala instrumentation setupdotnet.NET instrumentation setuprubyRuby instrumentation setupphpPHP instrumentation setupbrowserBrowser instrumentation setupnextjsNext.js full-stack instrumentation (App Router)

## Official documentation

* OpenTelemetry Documentation

* Semantic Conventions

* Dash0 Integration Hub

## Getting started

Follow these steps when instrumenting an application from scratch:

* Pick your SDK rule — choose the language-specific rule from the table above (e.g., nodejs, python).

* Set up resource attributes — define service identity and environment per resources.

* Add spans, metrics, and logs — instrument your code following spans, metrics, and logs.

* Guard sensitive data — scrub PII before export per sensitive-data.

* Validate — confirm telemetry reaches the backend using the checklist in validation.

The snippet below shows a complete span with attributes and status for Node.js — see nodejs for full setup including SDK initialisation, exporter configuration, and auto-instrumentation:

```
`const { trace, SpanStatusCode } = require('@opentelemetry/api');
const tracer = trace.getTracer('my-service', '1.0.0');

tracer.startActiveSpan('operation-name', async (span) => {
try {
span.setAttribute('user.id', userId);
span.setAttribute('order.id', orderId);

const result = await processOrder(orderId);

span.setAttribute('order.status', result.status);
span.setStatus({ code: SpanStatusCode.OK });
return result;
} catch (err) {
span.setStatus({ code: SpanStatusCode.ERROR, message: err.message });
span.recordException(err);
throw err;
} finally {
span.end();
}
});
`
```

## Key principles

### Signal density over volume

Every telemetry item should serve one of three purposes:

* Detect - Help identify that something is wrong

* Localize - Help pinpoint where the problem is

* Explain - Help understand why it happened

If it doesn't serve one of these purposes, don't emit it.

### Sample in the pipeline, not the SDK

Use the `AlwaysOn` sampler (the default) in every SDK.
Do not configure SDK-side samplers — they make irreversible decisions before the outcome of a request is known.
Defer all sampling to the Collector, where policies can be changed centrally without redeploying applications.

```
`SDK (AlwaysOn) → Collector (sampling) → Backend (retention)
↓ ↓ ↓
All spans Head or tail Storage policies
exported sampling applied
`
```

## More skills from dash0hq
otel-collectorby dash0hqExpert guidance for configuring and deploying the OpenTelemetry Collector. Use when setting up a Collector pipeline, configuring receivers, exporters, or…otel-ottlby dash0hqOpenTelemetry Transformation Language (OTTL) expert. Use when writing or debugging OTTL expressions for any OpenTelemetry Collector component that supports…otel-semantic-conventionsby dash0hqOpenTelemetry Semantic Conventions expert. Use when selecting, applying, or reviewing telemetry attributes. Triggers on tasks involving attribute selection,…

---

**Source**: https://github.com/dash0hq/agent-skills/tree/HEAD/skills/otel-instrumentation
**Author**: dash0hq
**Discovered via**: mcpservers.org

Related skills 6

caveman

★ Featured

Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says "caveman mode", "talk like caveman", "use caveman", "less tokens", "be brief", or invokes /caveman. Also auto-triggers when token efficiency is requested.

juliusbrussee 167k
Development

secure-linux-web-hosting

★ Featured

Use when setting up, hardening, or reviewing a cloud server for self-hosting, including DNS, SSH, firewalls, Nginx, static-site hosting, reverse-proxying an app, HTTPS with Let's Encrypt or ACME clients, safe HTTP-to-HTTPS redirects, or optional post-launch network tuning such as BBR.

xixu-me 155k
Development

readme-i18n

★ Featured

Use when the user wants to translate a repository README, make a repo multilingual, localize docs, add a language switcher, internationalize the README, or update localized README variants in a GitHub-style repository.

xixu-me 155k
Development

lark-shared

★ Featured

Use when first setting up lark-cli, running auth login, switching user/bot identity (--as), handling permission denied or scope errors, needing to update lark-cli, or seeing _notice in JSON output.

larksuite 155k
Development

improve-codebase-architecture

★ Featured

Find deepening opportunities in a codebase, informed by the domain language in CONTEXT.md and the decisions in docs/adr/. Use when the user wants to improve architecture, find refactoring opportunities, consolidate tightly-coupled modules, or make a codebase more testable and AI-navigable.

mattpocock 151k
Development

paper-context-resolver

★ Featured

Optional RigorPilot helper for README-first deep learning repo reproduction. Use only when the README and repository files leave a narrow reproduction-critical gap and the task is to resolve a specific paper detail such as dataset split, preprocessing, evaluation protocol, checkpoint mapping, or runtime assumption from primary paper sources while recording conflicts. Do not use for general paper summary, repo scanning, environment setup, command execution, title-only paper lookup, or replacin...

lllllllama 127k
Development