Skip to content
Back to skills

Telemetry

ASecurity

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.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 26, 2026
development

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add v0idOS/performance-deity --skill telemetry --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Telemetry?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Telemetry
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/v0idos-telemetry/badge)](https://www.skillsdirectory.com/skills/v0idos-telemetry)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: 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.
---

Execute all three phases in order.

## Phase 1 — Trace Wrap

Wrap the critical-path function in a trace span:

**OpenTelemetry:**
```js
tracer.startActiveSpan('operation.name', (span) => {
  // ... function body
  span.end();
});
```

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

**Datadog:**
```js
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:

| Field | Value |
|---|---|
| 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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.