observability-and-instrumentation

仓库创建 2026年7月5日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

保障生产可靠性,减少故障回溯时间。

这个 Skill 做什么

为代码添加日志、指标与追踪,使运行行为可观测并可诊断。

把代码里该有的日志、metrics、trace 和告警都补上,让线上服务的行为能被看见和排查。上线新功能或别人报生产问题看不出原因时会用,能告诉你“到底发生了什么”。特别之处是把埋点和监控当作代码的一部分,随功能一起写,提供可验证的证据。

▸ 展开 SKILL.md 英文原文

Instruments code so production behavior is visible and diagnosable. Use when adding logging, metrics, tracing, or alerting. Use when shipping any feature that runs in production and you need evidence it works. Use when production issues are reported but you can't tell what happened from the available data.

开发编程可观测性日志度量追踪告警通用
0
Stars
0
Forks
25
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/kulapoo/opencode-agent-harness/main/skills/observability-and-instrumentation/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/kulapoo/opencode-agent-harness/main/skills/observability-and-instrumentation/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Observability and Instrumentation

## Overview

Code you can't observe is code you can't operate. Observability is the ability to answer "what is the system doing and why?" from the outside, using the telemetry the code emits. Instrumentation is not a post-launch add-on — it's written alongside the feature, the same way tests are. If a feature ships without telemetry, the first user-reported bug becomes archaeology instead of a query.

## When to Use

- Building any feature that will run in production
- Adding a new service, endpoint, background job, or external integration
- A production incident took too long to diagnose ("we couldn't tell what happened")
- Setting up or reviewing alerti
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有