agentleFS
pvnarppvnarp/agent-skills/skills/telemetry/SKILL.md

telemetry

Skill1 starsChanged 9 months agoMITView on GitHub

Manages observability including error tracking, logging, metrics, and analytics. Covers instrumentation strategy, event definitions, and monitoring setup. Use when setting up monitoring, instrumenting events, or debugging production issues.

10 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use setup.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use a dedicated error tracking service (Sentry, Bugsnag, Rollbar, etc.)

    line 13
  2. Distinctive:

    Add breadcrumbs at key application events for context

    line 15
  3. Distinctive:

    Add context at key moments so error reports tell a story:

    line 28
  4. Distinctive:

    Avoid alert fatigue - every alert should require action

    line 48
  5. Distinctive:

    Never log secrets, PII, or full request bodies with sensitive data

    line 63
  6. Distinctive:

    Keep log volume manageable - noisy logs get ignored

    line 64

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Telemetry & Observability

Three pillars: Errors (what broke), Metrics (how it's performing), Logs (what happened).

Error Tracking

Strategy

  • Use a dedicated error tracking service (Sentry, Bugsnag, Rollbar, etc.)
  • Capture unhandled exceptions automatically
  • Add breadcrumbs at key application events for context
  • Group errors by root cause, not by stack trace variation

Setup Pattern

1. Install SDK
2. Initialize early in application startup
3. Configure environment (dev/staging/production)
4. Set sample rate for performance tracing (10-20% is typical)
5. Upload source maps / debug symbols for readable stack traces

Breadcrumbs

Add context at key moments so error reports tell a story:

  • User actions (navigation, form submissions, key interactions)
  • State transitions (login, mode changes, configuration updates)
  • External calls (API requests, DB queries)

Metrics

Key Metrics to Track

CategoryMetrics
AvailabilityUptime, error rate, success rate
PerformanceResponse time (p50, p95, p99), throughput
ResourcesCPU, memory, disk, connections
BusinessActive users, key actions, conversion

Alerting Rules

  • Alert on symptoms, not causes (high error rate, not "disk at 80%")
  • Set meaningful thresholds based on actual baselines
  • Include runbook links in alerts
  • Avoid alert fatigue - every alert should require action

Logging

Levels

LevelWhen
ERRORSomething broke and needs attention
WARNSomething unexpected but handled
INFOSignificant application events
DEBUGDetailed diagnostic info (dev/staging only)

Rules

  • Structured logging (JSON) in production for parseability
  • Include correlation IDs for request tracing
  • Never log secrets, PII, or full request bodies with sensitive data
  • Keep log volume manageable - noisy logs get ignored

Analytics Events

Define events that answer business questions:

EVENT: [name]
WHEN: [trigger condition]
PAYLOAD: [relevant data fields]
QUESTION IT ANSWERS: [what you learn from this]

Offline-First Pattern

Queue events locally when offline. Flush on connectivity. Batch inserts for efficiency. Dedup on the server if needed.

Phase Rollout

  1. First: Error tracking (know when things break)
  2. Next: Key metrics (know how things perform)
  3. Then: Structured logging (know what happened)
  4. Finally: Analytics (know how users behave)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.