telemetry-foundations
БесплатноБез исполняемых скриптовНе проверенDeclarative OpenTelemetry-aligned telemetry vocabulary and instrumentation conventions for traces, metrics, logs, and PII handling
от microsoft★ 1 654 звезды на GitHubОб этом скилле
Telemetry Foundations
Overview
A shared vocabulary for observability across HVE Core agents. This skill describes what telemetry data exists and how it is named, not which SDK or vendor to use. Agents producing planning artifacts (ADRs, PRDs, security/RAI plans, code-review reports) and agents producing user-facing application code reference this skill so that downstream pipelines (traces, metrics, logs) speak a consistent OpenTelemetry-aligned language.
When to Apply
Apply this skill in the following situations:
- Any agent producing user-facing application code that emits spans, metrics, or structured logs.
- Architecture Decision Records that touch observability, monitoring, or audit logging.
- Code-review reports that flag telemetry gaps, inconsistent span naming, or unbounded metric cardinality.
- Security or Responsible AI plans that cite audit logs, traceability, or evidence chains.
- Product or business requirement documents that specify success metrics expressed as service telemetry.
Core Principles
The vocabulary in this skill follows five principles:
- Declarative, not prescriptive. Define the names and shapes; leave the choice of SDK, exporter, and backend to the implementing team.
- OpenTelemetry-aligned. Trace, metric, and log models follow the OTel data model so artifacts remain portable.
- Semantic conventions first. Where an OTel semantic convention exists for a domain (HTTP, RPC, database, messaging, GenAI, FaaS), prefer it over a bespoke attribute.
- PII by denylist. Treat PII as default-deny via the denylist in references/pii-denylist.md; any field listed there requires an explicit redaction strategy before it can be emitted.
- Vendor-agnostic. Avoid coupling vocabulary to a single backend; OTLP is the assumed wire protocol.
Trace Vocabulary
Spans describe a unit of work and its causal relationship to other work.
Span kinds:
server- inbound request handled by this service.client- outbound request issued by this service.producer- asynchronous message published to a queue or topic.consumer- asynchronous message received from a queue or topic.internal- in-process operation with no remote peer.
Required resource-scoped attributes on every span:
service.nameservice.versiondeployment.environment
Span naming pattern: <verb>.<resource> using lowercase dot-separated tokens. The verb describes the operation (get, create, publish, consume, query); the resource describes the target entity (order, customer, payment.intent). Examples: get.order, publish.order.created, query.customer.by_email.
For domains covered by OTel semantic conventions (HTTP, RPC, database, messaging, GenAI, FaaS), use the convention's span-naming guidance instead of the generic pattern above.
Metric Vocabulary
Metrics describe aggregate measurements over time.
Instrument types:
counter- monotonic, additive (request count, bytes sent).up-down-counter- non-monotonic, additive (queue depth, active connections).histogram- distribution of values (request duration, payload size).gauge- last-sampled value, non-additive (CPU temperature, memory in use).observable-counter,observable-up-down-counter,observable-gauge- async variants polled by the SDK.
Unit conventions follow UCUM. Examples: s (seconds), ms (milliseconds), By (bytes), 1 (dimensionless count). Express durations as histograms in seconds (s) by default to align with OTel HTTP semantic conventions.
Metric naming pattern: <domain>.<entity>.<measure> using lowercase dot-separated tokens. Examples: http.server.request.duration, db.client.connections.usage, messaging.publish.duration.
Cardinality discipline: every attribute attached to a metric multiplies the time-series count. Bound high-cardinality dimensions (user ID, request ID, free-form strings) at the source or move them to exemplars and traces.
Log Vocabulary
Structured logs carry discrete events with severity and context.
Severity levels (OTel log data model):
TRACE- fine-grained diagnostic detail, off by default.DEBUG- diagnostic detail useful during development.INFO- normal operational events.WARN- unexpected condition that does not block the operation.ERROR- operation failed; the caller likely saw a failure.FATAL- process is going to terminate.
Recommended structured fields on every log record:
timestamp(ISO-8601, UTC).severity_textandseverity_number.body(the human-readable message; structured data goes inattributes).attributes.*(typed key-value pairs scoped to this event).resource.*(inherited from the producing service).
Trace correlation: when a log record is emitted within an active span, inject trace_id and span_id so traces and logs join cleanly downstream. Logging libraries that integrate with the OTel context propag
Установить telemetry-foundations в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл telemetry-foundations?
Declarative OpenTelemetry-aligned telemetry vocabulary and instrumentation conventions for traces, metrics, logs, and PII handling
Как установить скилл telemetry-foundations?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл telemetry-foundations запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic