/major-ai-skills:opentelemetryfrom major-ai-skills
Instrument services with OpenTelemetry traces, metrics, and logs; configure collectors and diagnose context propagation.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
OpenTelemetry (OTel) is a vendor-neutral standard for traces, metrics, and logs. Applications use language SDKs/APIs; the OpenTelemetry Collector receives, processes, and exports telemetry to backends (Jaeger, Prometheus, cloud APM). Agents should prioritize correct context propagation and low-cardinality attributes over dumping every field into spans.
App SDK (traces/metrics/logs)
|
| OTLP
v
OTel Collector (receivers -> processors -> exporters)
|
+--> Tempo/Jaeger (traces)
+--> Prometheus/Mimir (metrics)
+--> Loki/ELK (logs)
service.name, deployment.environment)service.name (and ideally service.version) via resource attributes.traceparent) across process boundaries.receivers:
otlp:
protocols:
grpc:
http:
processors:
batch: {}
memory_limiter:
check_interval: 1s
limit_mib: 512
exporters:
otlp/tempo:
endpoint: tempo:4317
tls: { insecure: true }
prometheus:
endpoint: 0.0.0.0:8889
service:
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [otlp/tempo]
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [prometheus]
const { trace } = require("@opentelemetry/api");
const tracer = trace.getTracer("api");
async function createOrder(req) {
return tracer.startActiveSpan("createOrder", async (span) => {
span.setAttribute("order.items", req.items.length);
try {
const id = await saveOrder(req);
span.setAttribute("order.id", id);
return id;
} catch (err) {
span.recordException(err);
span.setStatus({ code: 2, message: String(err) });
throw err;
} finally {
span.end();
}
});
}
# Expect traceparent on outbound calls; verify backend shows one trace ID
curl -sI https://api.example.com/health | tr -d '\r' | grep -i trace
| Symptom | Cause | Fix |
|---|---|---|
| Orphan spans | Missing propagation | Inject/extract TraceContext |
| Huge bills / load | Over-instrumentation | Sample; drop noisy spans |
| Useless metrics | High cardinality | Bound label sets |
| No data in backend | Exporter endpoint/TLS | Collector logs; otel-debug |
trace_id / span_id fields.kubernetes - sidecars/DaemonSets for Collector deploymentelasticsearch - log backend often paired with tracesdocker - local Collector + app compose stacksnginx-hardening - edge headers and tracing passthroughWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.