Why it matters
Logs tell stories, metrics show trends, traces connect webhook ACK to LLM completion — small bots already need all three.
Practical steps
- Emit JSON logs with request_id, platform, handler, outcome, latency_ms.
- Export counters for ACK latency, 429s and signature failures.
- Propagate trace context into queue jobs.
- Redact tokens and message bodies by default.
- Alert on silence (no heartbeat) as well as errors.
Watch out for
- Unbounded chat_id metric labels.
- Traces that include full prompts.