Deepgram ObservabilitySAFE
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Overview
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
4f83675ca38aOBSERVED · 2026-10-08Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| claude-code | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
--- name: deepgram-observability description: 'Set up comprehensive observability for Deepgram integrations. Use when implementing monitoring, setting up dashboards, or configuring alerting for Deepgram integration health. Trigger: "deepgram monitoring", "deepgram metrics", "deepgram observability", "monitor deepgram", "deepgram alerts", "deepgram dashboard". ' allowed-tools: Read, Write, Edit, Bash(curl:*) version: 1.13.0 license: MIT author: Jeremy Longshore <[email protected]> tags: - saas - deepgram - monitoring - observability - prometheus compatibility: Designed for Claude Code --- # Deepgram Observability ## Prerequisites - An approved metrics/tracing/logging backend, data-retention policy, and on-call owner. - Redaction rules that exclude audio, transcript text, API keys, participant identifiers, and other sensitive metadata. ## Examples Emit aggregate metrics for request count, latency, model, status class, streaming duration, and rate-limit headroom. Trigger a non-sensitive staging failure to verify alert routing, then record the correlation ID and remediation time—never audio samples, transcripts, or credentials. ## Overview Full observability stack for Deepgram: Prometheus metrics (request counts, latency histograms, audio processed, cost tracking), OpenTelemetry distributed tracing, structured JSON logging with Pino, Grafana dashboard JSON, and AlertManager rules. ## Four Pillars | Pillar | Tool | What It Tracks | |--------|------|----------------| | Metrics | Prometheus | Request rate, latency, error rate, audio minutes, estimated cost | | Traces | OpenTelemetry | End-to-end request flow, Deepgram API span timing | | Logs | Pino (JSON) | Request details, errors, audit trail | | Alerts | AlertManager | Error rate >5%, P95 latency >10s, rate limit hits | ## Instructions ### Step 1: Prometheus Metrics Definition ```typescript import { Counter, Histogram, Gauge, Registry, collectDefaultMetrics } from 'prom-client'; const registry = new Registry(); collectDefaultMetrics({ register: registry }); // Request metrics const requestsTotal = new Counter({ name: 'deepgram_requests_total', help: 'Total Deepgram API requests', labelNames: ['method', 'model', 'status'] as const, registers: [registry], }); const latencyHistogram = new Histogram({ name: 'deepgram_request_duration_seconds', help: 'Deepgram API request duration', labelNames: ['method', 'model'] as const, buckets: [0.1, 0.5, 1, 2, 5, 10, 30, 60], registers: [registry], }); // Usage metrics const audioProcessedSeconds = new Counter({ name: 'deepgram_audio_processed_seconds_total', help: 'Total audio seconds processed', labelNames: ['model'] as const, registers: [registry], }); const estimatedCostDollars = new Counter({ name: 'deepgram_estimated_cost_dollars_total', help: 'Estimated cost in USD', labelNames: ['model', 'method'] as const, registers: [registry], }); // Operational metrics const activeConnections = new Gauge({ name: 'deepgram_active_websocket_connections', help: 'Currently active WebSocket connections', registers: [registry], }); const rateLimitHits = new Counter({ name: 'deepgram_rate_limit_hits_total', help: 'Number of 429 rate limit responses', registers: [registry], }); export { registry, requestsTotal, latencyHistogram, audioProcessedSeconds, estimatedCostDollars, activeConnections, rateLimitHits }; ``` ### Step 2: Instrumented Deepgram Client ```typescript import { createClient, DeepgramClient } from '@deepgram/sdk'; class InstrumentedDeepgram { private client: DeepgramClient; private costPerMinute: Record<string, number> = { 'nova-3': 0.0043, 'nova-2': 0.0043, 'base': 0.0048, 'whisper-large': 0.0048, }; constructor(apiKey: string) { this.client = createClient(apiKey); } async transcribeUrl(url: string, options: Record<string, any> = {}) { const model = options.model ?? 'nova-3'; const timer = latencyHistogram.startTimer({ method: 'prerecorded', model }); try { const { result, error } = await this.client.listen.prerecorded.transcribeUrl( { url }, { model, smart_format: true, ...options } ); const status = error ? 'error' : 'success'; timer(); requestsTotal.inc({ method: 'prerecorded', model, status }); if (error) { if ((error as any).status === 429) rateLimitHits.inc(); throw error; } // Track usage const duration = result.metadata.duration; audioProcessedSeconds.inc({ model }, duration); estimatedCostDollars.inc( { model, method: 'prerecorded' }, (duration / 60) * (this.costPerMinute[model] ?? 0.0043) ); return result; } catch (err) { timer(); requestsTotal.inc({ method: 'prerecorded', model, status: 'error' }); throw err; } } // Live transcription with connection tracking connectLive(options: Record<string, any>) { const model = options.model ?? 'nova-3'; activeConnections.inc(); const connection = this.client.listen.live(options); const originalFinish = connection.finish.bind(connection); connection.finish = () => { activeConnections.dec(); return originalFinish(); }; return connection; } } ``` ### Step 3: OpenTelemetry Tracing ```typescript import { NodeSDK } from '@opentelemetry/sdk-node'; import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http'; import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node'; import { Resource } from '@opentelemetry/resources'; import { SEMRESATTRS_SERVICE_NAME } from '@opentelemetry/semantic-conventions'; import { trace } from '@opentelemetry/api'; const sdk = new NodeSDK({ resource: new Resource({ [SEMRESATTRS_SERVICE_NAME]: 'deepgram-service', 'deployment.environment': process.env.NODE_ENV ?? 'development', }), traceExporter: new OTLPTraceExporter({ url: process.env.OTEL_EXPOR
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | PASS |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
4f83675ca38afull audit observations/trust-audit/skill/jeremylongshore__deepgram-observability.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-08 | 4f83675ca38a | SAFE | B | 89 | first audit |
Questions
What does the Deepgram Observability skill do?
Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com.
Is Deepgram Observability safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Deepgram Observability access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Deepgram Observability work with?
Its documentation mentions claude-code. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (4f83675ca38a), read on 2026-10-08. The repository is watched, and a new audit runs when it changes — this is the first audit.