logging-tracer

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

分层引入可观测性,从零依赖到 OTel 平滑过渡

▸ 风险提示

可能引入外部跟踪后端或新增运行时依赖

这个 Skill 做什么

生成针对项目栈的结构化日志与可选 OpenTelemetry 跟踪代码

按项目栈生成结构化日志和可选的 OpenTelemetry(OTel)跟踪代码,从零依赖起步,必要时再升级到分布式 tracing。在你要求“加日志”“加 tracing”或遇到沉默失败、没有运行时可视性时使用。特点是按需递进,优先最小改动和结构化输出,便于排查与观测。

▸ 展开 SKILL.md 英文原文

Use when the user asks to "add logging", "add tracing", "improve observability", "OpenTelemetry", "structured logging", or reports silent failures or no runtime visibility. Generates stack-appropriate logging with optional OTel.

开发编程日志可观测性追踪OpenTelemetry通用
1
Stars
0
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/tyroneross/build-loop/main/skills/logging-tracer/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/tyroneross/build-loop/main/skills/logging-tracer/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
<!-- SPDX-FileCopyrightText: 2025-2026 Tyrone Ross, Jr <46267523+tyroneross@users.noreply.github.com> | SPDX-License-Identifier: Apache-2.0 -->

# Logging & Tracing Code Generation

Generate structured logging and tracing code tailored to the project's stack. Follow a tiered approach: start with zero dependencies, escalate only when the user needs distributed tracing.

## Stack Detection

Before generating code, detect the project's stack and existing logging:

1. Check for `package.json` (Node.js/TypeScript), `requirements.txt`/`pyproject.toml` (Python), `go.mod` (Go), `Cargo.toml` (Rust), `Gemfile` (Ruby)
2. Check for existing logging frameworks:
   - Node.js: winston, pino, bunyan, consol
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有