agentleFS
v0idOSv0idOS/performance-deity/skills/telemetry/SKILL.md

telemetry

Skill2 starsChanged 7 months agoMITView on GitHub

Add production observability to a function. Wraps it in an OpenTelemetry or Sentry trace span, injects execution metadata, and proposes a concrete alert rule with threshold and severity.

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

Files
SKILL.md

Execute all three phases in order.

Phase 1 — Trace Wrap

Wrap the critical-path function in a trace span:

OpenTelemetry:

tracer.startActiveSpan('operation.name', (span) => {
  // ... function body
  span.end();
});

Sentry:

const transaction = Sentry.startTransaction({ name: 'operation.name' });
// ... function body
transaction.finish();

Datadog:

tracer.trace('operation.name', () => {
  // ... function body
});

Phase 2 — Attribute Injection

Inside the span, attach:

  • Execution time (start and stop timer)
  • Query tags: user_id, tenant_id, endpoint
  • Input and output payload sizes in bytes

Phase 3 — Alert Rule

Propose an alert rule with all four fields specified:

FieldValue
Metric(e.g. trace.operation.duration)
Threshold(e.g. > 200ms)
Evaluation window(e.g. last 5 minutes)
Severity(e.g. P2 / warning)

Examples:

  • Datadog: avg(last_5m):avg:trace.operation.duration{env:prod} > 0.200 → P2
  • Prometheus: histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m])) > 0.2 → warning

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.