observability
Use when building or reviewing OpenTelemetry instrumentation, trace/metric/log pipeline design, or observability architecture. Do not use when the work is vendor-specific backend configuration, incident response runbooks, or testing strategies owned by another skill.
- License 许可
- MIT
- 最近更新
- 2026-10-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- observability
- license
- MIT
- metadata
- { "owner": "Harley Bartles", "scope": "Guidance for designing and reviewing OpenTelemetry-based observability.", "status": "active", "use_when": [ "building or reviewing OpenTelemetry instrumentation.", "designing trace, metric, and log pipelines.", "deciding sampling, context propagation, and resource attributes." ], "source-id": "observability", "source-path": "skills/observability/SKILL.md", "related_skills": [ "deployment-patterns" ], "do_not_use_when": [ "configuring a specific vendor backend or dashboard.", "authoring incident response runbooks.", "the task is performance or load testing." ], "provenance-name": "Observability first-party skill", "source-category": "first_party" }
- description
- Use when building or reviewing OpenTelemetry instrumentation, trace/metric/log pipeline design, or observability architecture. Do not use when the work is vendor-specific backend configuration, incident response runbooks, or testing strategies owned by another skill.
02 资源文件 5
- 参考文档agents/openai.yaml556 B
- 资产文件assets/authority/authority.yaml1.3 KB
- 资产文件assets/authority/CITATIONS.md1.1 KB
- 资产文件assets/authority/source-map.yaml620 B
- 参考文档references/operational-guidance.md3.3 KB
03 SKILL.md 正文
Observability
Overview
Use OpenTelemetry to collect distributed traces, metrics, and logs with a single vendor-neutral pipeline. Instrument code once, then export telemetry through the OpenTelemetry Collector to backends.
When to Use
- Add or review traces, metrics, and logs in an application or library.
- Design SDK, Collector, or exporter configuration.
- Choose sampling strategies, context propagation formats, and resource attributes.
- Apply semantic conventions for spans, metrics, and log attributes.
Core Pattern
- Instrument with the OpenTelemetry API: create tracers, record spans, add metrics, and emit logs.
- Configure the SDK with resource attributes, exporters, and samplers.
- Propagate context across process boundaries using W3C Trace Context and Baggage.
- Export via OTLP to the OpenTelemetry Collector or directly to a backend.
- Enrich telemetry with semantic conventions and custom attributes.
Common Mistakes
- Over-instrumenting hot paths or recording high-cardinality attributes.
- Mixing manual context propagation with auto-instrumentation inconsistently.
- Sampling all traces at head without considering tail-based sampling for errors.
- Hard-coding vendor-specific exporters in library code.
- Forgetting resource attributes that identify service, version, and environment.
Scope Boundary
Prefer backend-specific skills for query languages, alerting, and dashboards. Prefer testing skills for load tests and SLO verification. Prefer SRE skills for incident response and runbooks.
04 同仓库更多 Skills
writing
Use when drafting, revising, or reviewing prose for human readers and clarity, an authorised voice, or reader-fatigue concerns may interact.
writing-with-clarity
Use when drafting, revising, or reviewing prose intended for human readers, including documentation, README files, reports, explanations, UI copy, errors, comments, commit messages, and pull request text.
writing-style
Use when revising or reviewing human-facing prose against an authorised voice card or a contextual reader-fatigue profile.
skill
暂无简介
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment.
writing-roadmaps
Use when a goal is too large for one writing-plans plan and requires a sequenced roadmap of consecutive plans.