- Home
- Skills
- DevOps & Cloud
- Observability Setup: OpenTelemetry Logs, Traces & Alerts
Works with the AI Agents you already use
Observability Setup: OpenTelemetry Logs, Traces & Alerts
Instruments your app with OpenTelemetry: structured logs, distributed traces, RED metrics and alert rules that page only on real user impact.
$7.99
Observability Setup: OpenTelemetry Logs, Traces & Alerts
Example session with this skill installed
Add observability to my Express + Postgres API on ECS. We use Grafana Cloud. I can't debug slow requests.
- Read your context and instructions
- Compiled the observability setup
**Plan:** pino structured logs with trace ids, OTel auto-instrumentation (http, express, pg), RED metrics, 1 SLO with burn-rate alerts → Grafana Cloud via OTLP. **`src/otel.ts`** (loaded first via `node -r ./dist/otel.js`) ```ts import { NodeSDK } from '@opentelemetry/sdk-node'; import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node'; import { ParentBasedSampler, TraceIdRatioBasedSampler } from '@opentelemetry/sdk-trace-base'; new NodeSDK({ sampler: new ParentBasedSampler({ root: new TraceIdRatioBasedSampler(0.1) }), instrumentations: [getNodeAutoInstrumentations({ '@opentelemetry/instrumentation-fs': { enabled: false } })], }).start(); ``` **Logger** (`src/log.ts`): pino with a mixin that adds `trace_id`/`span_id` from the active span; redact `req.headers.authorization`, `*.email`. **ECS task env** | Var | Value | |---|---| | OTEL_SERVICE_NAME | orders-api | | OTEL_EXPORTER_OTLP_ENDPOINT | https://otlp-gateway-prod-eu-west-2.grafana.net/otlp | | OTEL_EXPORTER_OTLP_HEADERS | Authorization=Basic <token from secrets manager> | **SLO:** 99% of `GET /orders/*` under 500 ms over 30 days. **Alerts:** fast burn (14.4× over 1h) pages; slow burn (6× over 6h) opens a ticket. Runbook stub included. **Verify:** send `curl -H 'traceparent: 00-<trace-id>-<span-id>-01' https://api.example.com/orders/1`, then search that trace id in Grafana Tempo; you should see express → pg spans with the SQL statement.
Connects securely to your tools. The creator never sees your data.
About this skill
Instruments your app with OpenTelemetry: structured logs, distributed traces, RED metrics and alert rules that page only on real user impact. Node, Python, Go; exports to Grafana, Datadog, Honeycomb, Axiom or any OTLP backend. ## How it works - **Discover** - **Logs** - **Traces** - **Metrics** - **SLOs and alerts** - **Output** ## Use it when You say add logging, add tracing, instrument my app, set up monitoring, OpenTelemetry, why can't I debug production, set up alerts, define SLOs, or connect to Grafana/Datadog/Honeycomb/Axiom. ## Why this one - Runs real checks instead of generic advice - Concrete output: files, tables and next steps you can act on today - Works with Claude Code, Codex CLI, Cursor, Gemini CLI and any SKILL.md agent More by Ignasi: Frontend Design Pro, Security Audit, Cut Agent Token Costs.
Default sampling is 10% for success and 100% for errors. Manual spans are only added to high-level business operations. User must provide the specific backend for tailored alert syntax.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before any payment.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
Permissions
No special permissions declared or detected