본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)41k · #6920

signals-scout-apm

하는 일

이 스카우트는 분산 트레이스에서 서비스별 오류율, 지연 시간, 트래픽의 변화를 지켜봅니다. 서비스 회귀를 일찍 잡고 싶은 엔지니어링 팀을 위한 것입니다.

사용하는 경우

  • ✓릴리스 후 한 서비스의 오류가 늘어날 때.
  • ✓한 서비스나 작업의 응답 시간이 눈에 띄게 느려질 때.
  • ✓서비스 트래픽이 갑자기 크게 떨어질 때.

스킬 링크

https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-apm/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/PostHog/posthog/blob/master/products/signals/skills/signals-scout-apm/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“지난주와 비교해 실패하거나 느려진 서비스가 있는지 알려 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

각 서비스와 작업의 오류율과 지연 시간을 일주일 전의 자체 기준선과 비교합니다. 회귀가 국소적이고 확인되었을 때만 보고서를 만듭니다. 반복되는 데이터베이스 호출 같은 상시 성능 문제도 표시할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

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), and
  • apm-spans-count over 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 with pattern:, noise:, addressed:, dedupe:, report:, or reviewer: 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; pull scout-runs-retrieve only for one worth drilling into.
  • apm-service-health — the live service inventory with a status per service (the discriminator en
자주 묻는 질문

로그나 AI 사용량도 보나요?

아니요. 트레이싱 데이터에 집중하며, 로그와 AI 관측은 다른 스카우트가 다룹니다.

상시 성능 문제란 무엇인가요?

갑작스러운 변화가 아니라 항상 존재하는 문제, 예를 들어 반복 호출이나 비싼 쿼리입니다.

이미 알고 있는 문제를 반복하나요?

아니요. 받은편지함이 이미 회귀를 추적하면, 스카우트는 새 보고서 대신 그것을 업데이트합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
41k
순위
#6920
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬