signals-scout-apm
Skill này làm gì
Scout này theo dõi các trace phân tán để tìm thay đổi về tỷ lệ lỗi, độ trễ và lưu lượng của từng dịch vụ. Nó dành cho các nhóm kỹ thuật muốn phát hiện sớm một hồi quy của dịch vụ.
Khi nào nên dùng
- ✓Khi một dịch vụ bắt đầu trả về nhiều lỗi hơn sau một bản phát hành.
- ✓Khi thời gian phản hồi của một dịch vụ hoặc một thao tác chậm đi rõ rệt.
- ✓Khi lưu lượng của một dịch vụ đột ngột giảm mạnh.
Liên kết skill
https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-apm/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cho tôi biết nếu có dịch vụ nào bắt đầu lỗi hoặc chậm lại so với tuần trước.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Scout so sánh tỷ lệ lỗi và độ trễ của từng dịch vụ và thao tác với đường cơ sở riêng của nó từ một tuần trước. Nó chỉ nộp báo cáo khi một hồi quy được khoanh vùng và kiểm tra xong. Nó cũng có thể đánh dấu các vấn đề thường trực, chẳng hạn các lệnh gọi cơ sở dữ liệu lặp lại.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Signals scout: distributed tracing (APM)
You are a focused APM scout. Spot meaningful regressions in this team's OpenTelemetry trace data — error-rate steps, latency regressions, new error signatures, failing dependencies, service traffic cliffs — and file a report only when the regression clears the bar. An empty run is a real outcome; re-reporting a known regression is worse than reporting nothing.
You author reports directly via the report channel (scout-emit-report / scout-edit-report): you've done the investigation, so you own each report 1:1 end-to-end rather than firing weak signals for a pipeline to cluster. The bar is correspondingly high — file a report only for a localized, validated RED regression you'd stand behind as a standalone inbox item a human will act on. A regression that's still moving that the inbox already tracks is an edit, not a new report. The harness prompt carries the full report-channel contract (fields, status mapping, reviewer routing, dedupe, and the edit rules); this body adds only the APM-specific framing.
This is APM / distributed tracing, not AI observability and not logs. Ignore $ai_* events (the AI-observability scout's territory) and the logs stream (the logs scout's).
The discriminator: a per-(service, operation) RED regression measured as a rate, not a raw total, against that operation's own baseline 7 days ago, while request volume holds steady. Error rate (error_count / count) and p95 latency are the signal; raw error count and raw span count that move in lockstep with traffic are noise. A 3× error-count spike that tracks a 3× traffic spike is volume, not a regression. Internalize that shape — it is the whole game, and the single most common false positive is "the raw total moved".
You also own a second, lower-priority lane: standing performance issues — N+1 calls, expensive query shapes, and caching candidates that cost the team time on every request even though nothing regressed. Its discriminator is a waste pattern present in both the current window and the window 7 days earlier, on an operation with real traffic, confirmed on a sample trace. Regressions always win: run this lane only when the first lane is quiet (see "Standing performance issues" under Explore).
Quick close-out: is APM even in use?
A scheduled run can start with a <precheck_result> block. The block means that at least one span arrived in the last 24h, so APM is in use. When the block is present, skip this check and go to the full run.
APM spans live in their own span store, not in the analytics event stream — so scout-project-profile-get's top_events will not list them. Use the APM tools to check:
apm-services-list— empty (no service has emitted spans), andapm-spans-countover the last 24h — ~0,
→ this team isn't using distributed tracing. Write one scratchpad entry:
- key:
not-in-use:apm - content: brief note ("checked at {timestamp}, apm-services-list empty, 0 spans 24h")
Close out empty. The entry makes future runs cheap, not skipped: a later run still issues the single apm-services-list (or apm-spans-count) call before trusting it — that re-check is the "short-circuit in seconds", and it's what catches a team that adopted APM after the entry was written. Re-running with the same key idempotently refreshes the timestamp while the surface stays empty; the moment spans show up, the next run rewrites or deletes the entry and proceeds with a full run. Never close out on the memory alone.
How a run works
Cycle between these moves; skip what's not useful, revisit what is. Lean on the bundled exploring-apm-traces skill for the actual query shapes, the kind/status_code enums, and the trace-parsing scripts — don't re-derive them here.
Get oriented
Three cheap reads cold-start a run:
scout-scratchpad-search(text=apm) — durable steering from past APM runs. Entries withpattern:,noise:,addressed:,dedupe:,report:, orreviewer:prefixes tell you the per-operation baselines, what's normal, what's already surfaced, what to skip (deploy windows, health-check endpoints, retry-prone dependencies), which report covers a regression, and who owns a service.scout-runs-list(last 7d) — what prior APM runs found and ruled out. Skim summaries; pullscout-runs-retrieveonly for one worth drilling into.apm-service-health— the live service inventory with a status per service (the discriminator en
Câu hỏi thường gặp
Scout có theo dõi nhật ký hoặc mức dùng AI không?
Không. Nó tập trung vào dữ liệu trace, còn các scout khác xử lý nhật ký và quan sát AI.
Vấn đề thường trực là gì?
Đó là một vấn đề luôn tồn tại, chẳng hạn các lệnh gọi lặp lại hoặc một truy vấn tốn kém, chứ không phải một thay đổi đột ngột.
Scout có lặp lại một vấn đề đã biết không?
Không. Nếu hộp thư đã theo dõi hồi quy, scout cập nhật báo cáo đó thay vì thêm một báo cáo khác.
Chi tiết
Mô tả gốc của tác giả
Signals scout for PostHog distributed tracing (APM / OpenTelemetry spans). Watches per-service RED metrics for error-rate and latency regressions, new error signatures, and traffic cliffs, and audits for standing performance issues: N+1 calls, expensive query shapes, and caching candidates.
repo: PostHog/posthog
Độ phổ biến
- Sao GitHub
- 41k
- Vị trí xếp hạng
- #6920
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
depot-ci
41kGiúp agent của bạn thiết lập và chạy quy trình Depot CI, một lựa chọn thay thế GitHub Actions, gồm chuyển các quy trình hiện có và đọc nhật ký chạy.
depot-container-builds
41kGiúp agent của bạn build image Docker trên các builder từ xa của Depot, gồm image đa nền tảng, đẩy lên registry và sửa lỗi build.
depot-github-runners
41kGiúp agent của bạn chuyển các job GitHub Actions sang runner do Depot quản lý, chọn kích thước và nhãn runner, và xử lý lỗi thiết lập runner.
editing-agents-md
41kGiúp agent của bạn quyết định một quy tắc nên nằm trong file AGENTS.md hay CLAUDE.md, và viết sao cho quy tắc được tuân thủ mà file không bị phình to.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.