Set up comprehensive observability for Retell AI integrations with metrics, traces, and alerts. Use when implementing monitoring for Retell AI operations, setting up dashboards, or configuring alerting for Retell AI integration health. Trigger with phrases like "retellai monitoring", "retellai metrics", "retellai observability", "monitor retellai", "retellai alerts", "retellai tracing".
View on GitHubjeremylongshore/claude-code-plugins-plus-skills
retellai-pack
plugins/saas-packs/retellai-pack/skills/retellai-observability/SKILL.md
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/main/plugins/saas-packs/retellai-pack/skills/retellai-observability/SKILL.md -a claude-code --skill retellai-observabilityInstallation paths:
.claude/skills/retellai-observability/# Retell AI Observability
## Overview
Set up comprehensive observability for Retell AI integrations.
## Prerequisites
- Prometheus or compatible metrics backend
- OpenTelemetry SDK installed
- Grafana or similar dashboarding tool
- AlertManager configured
## Metrics Collection
### Key Metrics
| Metric | Type | Description |
|--------|------|-------------|
| `retellai_requests_total` | Counter | Total API requests |
| `retellai_request_duration_seconds` | Histogram | Request latency |
| `retellai_errors_total` | Counter | Error count by type |
| `retellai_rate_limit_remaining` | Gauge | Rate limit headroom |
### Prometheus Metrics
```typescript
import { Registry, Counter, Histogram, Gauge } from 'prom-client';
const registry = new Registry();
const requestCounter = new Counter({
name: 'retellai_requests_total',
help: 'Total Retell AI API requests',
labelNames: ['method', 'status'],
registers: [registry],
});
const requestDuration = new Histogram({
name: 'retellai_request_duration_seconds',
help: 'Retell AI request duration',
labelNames: ['method'],
buckets: [0.05, 0.1, 0.25, 0.5, 1, 2.5, 5],
registers: [registry],
});
const errorCounter = new Counter({
name: 'retellai_errors_total',
help: 'Retell AI errors by type',
labelNames: ['error_type'],
registers: [registry],
});
```
### Instrumented Client
```typescript
async function instrumentedRequest<T>(
method: string,
operation: () => Promise<T>
): Promise<T> {
const timer = requestDuration.startTimer({ method });
try {
const result = await operation();
requestCounter.inc({ method, status: 'success' });
return result;
} catch (error: any) {
requestCounter.inc({ method, status: 'error' });
errorCounter.inc({ error_type: error.code || 'unknown' });
throw error;
} finally {
timer();
}
}
```
## Distributed Tracing
### OpenTelemetry Setup
```typescript
import { trace, SpanStatusCode } from '@opentelemetry/api';
const tracer = trace.getTracer