devops-opentelemetry
Use when the user asks to instrument services with OpenTelemetry traces, OTel SDK auto or manual instrumentation, the OpenTelemetry Collector, OTLP…
от j4flmao★ 47 звёзд на GitHub
Установить devops-opentelemetry в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
OpenTelemetry
Purpose
Implement OpenTelemetry for vendor-neutral observability across distributed systems, covering traces, metrics, and logs collection, processing, and export to multiple backends.
Agent Protocol
Trigger
Exact user phrases: "OpenTelemetry", "OTel", "OTLP", "tracing", "distributed tracing", "OpenTelemetry Collector", "OTel SDK", "auto-instrumentation", "tail sampling", "OTel exporter", "Jaeger", "Zipkin", "context propagation", "span", "trace".
Input Context
Before activating, verify:
- Programming language(s) and framework(s) used.
- Existing observability backends (Jaeger, Prometheus, Datadog, etc.).
- Deployment environment (Kubernetes, VMs, serverless).
- Collection, sampling, and export requirements.
Output Artifact
Writes to OTel Collector YAML configuration, SDK initialization code, and deployment manifests.
Response Format
Configuration files and code snippets with OTel SDK imports, no extraneous explanation.
Completion Criteria
This skill is complete when:
- Collector pipeline configured with receivers, processors, exporters.
- SDK initialized in application code (auto or manual instrumentation).
- Sampling strategy configured for appropriate trace volume.
- Multi-backend export configured for redundancy.
- Context propagation verified across service boundaries.
Max Response Length
Direct file write. No response text.
Quick Start
Deploy OTel Collector → Configure receiver (OTLP) → Add batch processor → Configure exporters → Instrument application with SDK → Set sampling → Verify traces flowing.
Decision Tree: Sampling Strategy
- Low-traffic service (< 100 req/s), need full traces → Head-based sampling, 100% rate
- High-traffic service, errors + slow traces critical → Tail-based sampling (keep errors, keep slow, probabilistic rest)
- Consistent sampling across services (e.g., for SLO calculation) → Consistent probability sampling (consistentProbability)
- Cost-sensitive, multi-backend → Head-based probabilistic (10-30%), plus tail for error sample
- GDPR/PCI compliance, need PII filtering → Tail-based with attributes processor for redaction before export
- Dev environment → 100% head-based sampling
Core Workflow
Step 1: Collector Configuration — Full Pipeline
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
max_recv_msg_size_mib: 4
http:
endpoint: 0.0.0.0:4318
cors:
allowed_origins:
- http://localhost:3000
filelog:
include: [/var/log/app/*.log]
start_at: beginning
operators:
- type: regex_parser
regex: '^(?P<time>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d+Z)\s+(?P<level>\w+)\s+(?P<message>.*)$'
timestamp:
parse_from: attributes.time
layout: '%Y-%m-%dT%H:%M:%S.%LZ'
severity:
parse_from: attributes.level
processors:
batch:
timeout: 1s
send_batch_size: 1024
send_batch_max_size: 2048
memory_limiter:
check_interval: 1s
limit_mib: 512
spike_limit_mib: 128
attributes:
actions:
- key: environment
value: production
action: upsert
- key: datacenter
value: us-east-1
action: upsert
- key: db.connection_string
action: delete
- key: user.email
action: hash
filter:
error_mode: ignore
traces:
span:
- 'attributes["http.method"] == "OPTIONS"'
- 'attributes["healthcheck"] == true'
k8sattributes:
extract:
metadata:
- k8s.pod.name
- k8s.namespace.name
- k8s.deployment.name
- k8s.node.name
pod_association:
- sources:
- from: resource_attribute
name: k8s.pod.uid
exporters:
otlp/jaeger:
endpoint: jaeger:4317
tls:
insecure: true
otlp/grafana:
endpoint: grafana-tempo:4317
tls:
insecure: true
prometheus:
endpoint: 0.0.0.0:8889
resource_to_telemetry_conversion:
enabled: true
debug:
verbosity: detailed
sampling_initial: 2
sampling_thereafter: 500
service:
pipelines:
traces:
receivers: [otlp]
processors: [memory_limiter, k8sattributes, attributes, filter, batch]
exporters: [otlp/jaeger, otlp/grafana, debug]
metrics:
receivers: [otlp]
processors: [memory_limiter, batch]
exporters: [prometheus, debug]
logs:
receivers: [otlp, filelog]
processors: [memory_limiter, batch]
exporters: [otlp/grafana]
Step 2: Tail Sampling Processor
processors:
tail_sampling:
decision_wait: 30s
num_traces: 50000
expected_new_rates_per_second: 1000
policies:
- name: always-sample-errors
type: status_code
config:
status_code_source: OC
status_codes:
- ERROR
- UNSET
- name: always-sample-slow
type: latency
config:
threshold_ms: 500
- name: sample-probabilistic
type: probabilistic
config:
sampling_p
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/collector-pipeline.md
- references/merged-opentelemetry-tracing.md
- references/multi-backend-export.md
- references/opentelemetry-advanced.md
- references/opentelemetry-fundamentals.md
- references/otel-concepts.md
- references/sdk-instrumentation.md
- references/trace-sampling.md
- references/tracing-propagation.md
FAQ
Что делает скилл devops-opentelemetry?
Use when the user asks to instrument services with OpenTelemetry traces, OTel SDK auto or manual instrumentation, the OpenTelemetry Collector, OTLP, receivers/processors/exporters, tail sampling, or exporting to Jaeger, Tempo, Prometheus or Datadog. Produces OTel SDK and Collector configs. Not for propagation design across messaging (use cloud-native-distributed-tracing).
Как установить скилл devops-opentelemetry?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл devops-opentelemetry запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…