home / skills / bobmatnyc / claude-mpm-skills / opentelemetry
This skill helps you implement OpenTelemetry observability by configuring traces, metrics, and logs with OTLP export and collector pipelines.
npx playbooks add skill bobmatnyc/claude-mpm-skills --skill opentelemetryReview the files below or copy the command above to add this skill to your agents.
---
name: opentelemetry
description: "OpenTelemetry observability patterns: traces, metrics, logs, context propagation, OTLP export, Collector pipelines, and troubleshooting"
version: 1.0.0
category: universal
author: Claude MPM Team
license: MIT
progressive_disclosure:
entry_point:
summary: "Instrument services with OpenTelemetry and export OTLP traces/metrics/logs through a Collector for correlation and troubleshooting"
when_to_use: "When building production observability, adding tracing to distributed systems, or standardizing telemetry across languages"
quick_start: "1. Set service.name 2. Add auto-instrumentation 3. Export OTLP 4. Deploy Collector 5. Correlate logs with trace IDs"
token_estimate:
entry: 150
full: 9000
context_limit: 900
tags:
- observability
- opentelemetry
- tracing
- metrics
- logs
- otlp
requires_tools: []
---
# OpenTelemetry
## Quick Start (signal design)
- Export OTLP via an OpenTelemetry Collector (vendor-neutral endpoint).
- Standardize resource attributes: `service.name`, `service.version`, `deployment.environment`.
- Start with auto-instrumentation, then add manual spans and log correlation.
## Load Next (References)
- `references/concepts.md` — traces/metrics/logs, context propagation, sampling, semantic conventions
- `references/collector-and-otlp.md` — Collector pipelines, processors, deployment patterns, tail sampling
- `references/instrumentation-and-troubleshooting.md` — manual spans, propagation pitfalls, cardinality, debugging
This skill codifies OpenTelemetry observability patterns for traces, metrics, logs, context propagation, OTLP export, Collector pipelines, and troubleshooting. It guides practical decisions: signal design, resource attributes, auto-instrumentation, and when to add manual spans and log correlation. The goal is vendor-neutral observability that scales and debugs effectively.
The skill inspects instrumentation choices and recommends signal design: how to export OTLP to a Collector, which resource attributes to standardize, and where to use auto-instrumentation vs manual spans. It explains Collector pipeline components (receivers, processors, exporters), tail-sampling patterns, and propagation pitfalls. It also provides concrete troubleshooting steps for cardinality, propagation, and debug tracing.
Should I send telemetry directly to a backend or via a Collector?
Use a Collector as a vendor-neutral aggregation point. It lets you centralize batching, sampling, enrichment, and multi-backend export without changing service code.
When do I add manual spans if I already have auto-instrumentation?
Add manual spans for business-critical operations, external calls with custom semantics, or where you need clearer boundaries and attributes beyond auto-instrumentation.