home / skills / andrelandgraf / fullstackrecipes / observability-monitoring
This skill helps you implement a complete observability stack with structured logging, error tracking, and web analytics for robust production apps.
npx playbooks add skill andrelandgraf/fullstackrecipes --skill observability-monitoringReview the files below or copy the command above to add this skill to your agents.
---
name: observability-monitoring
description: Complete observability stack with structured logging, error tracking, and web analytics.
---
# Observability & Monitoring
Complete observability stack with structured logging, error tracking, and web analytics.
## Cookbook - Complete These Recipes in Order
### Pino Logging Setup
Configure structured logging with Pino. Outputs human-readable colorized logs in development and structured JSON in production for log aggregation services.
```bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/pino-logging-setup
```
### Sentry Setup
Configure Sentry for error tracking, performance monitoring, and log aggregation. Integrates with Pino to forward logs to Sentry automatically.
```bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/sentry-setup
```
### Vercel Web Analytics
Add privacy-focused web analytics with Vercel Web Analytics. Track page views, visitors, and custom events with zero configuration.
```bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/vercel-analytics-setup
```
### Working with Logging
Use structured logging with Pino throughout your application. Covers log levels, context, and workflow-safe logging patterns.
```bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-logging
```
### Working with Sentry
Capture exceptions, add context, create performance spans, and use structured logging with Sentry.
```bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-sentry
```
### Working with Analytics
Track custom events and conversions with Vercel Web Analytics. Covers common events, form tracking, and development testing.
```bash
curl -H "Accept: text/markdown" https://fullstackrecipes.com/api/recipes/using-analytics
```
This skill provides a complete observability stack for full-stack TypeScript web apps, combining structured logging, error tracking, and privacy-focused web analytics. It bundles production-ready patterns and step-by-step recipes to get Pino, Sentry, and Vercel Web Analytics integrated quickly and consistently. The goal is reliable runtime visibility, faster incident response, and safe analytics without compromising user privacy.
The skill configures Pino for structured, environment-aware logging (human-friendly in development, JSON in production) and links those logs into Sentry for centralized error and performance tracking. It includes instrumentation recipes for capturing exceptions, performance spans, and contextual metadata. Vercel Web Analytics is added for lightweight, zero-config page views and custom event tracking to measure user behavior and conversions while respecting privacy.
Do I need Vercel to use the analytics recipe?
Vercel Web Analytics is optimized for Vercel deployments but the recipes show how to instrument client-side events; if you use another host, choose a compatible privacy-first analytics provider.
How do logs get from Pino into Sentry?
The setup uses a Pino transport or integration to forward selected log levels and structured payloads to Sentry, preserving context and enabling rich error events.