observability

Instrument Next.js deployments with structured logging, traces, and analytics.

2|1|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/ByeongminLee/nextjs-claude-code --skill observability-byeongminlee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability
Source: https://github.com/ByeongminLee/nextjs-claude-code/tree/main/template/.claude/skills/observability
Command: npx skills add https://github.com/ByeongminLee/nextjs-claude-code --skill observability-byeongminlee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Instrument and monitor Next.js deployments with structured logging, traces, and analytics to diagnose performance and reliability across environments.

Core Features & Use Cases

  • Structured logging baselines for API routes and server actions to surface errors quickly.
  • End-to-end observability with Drains, OpenTelemetry, and Web Analytics integrations for production-grade monitoring.
  • Guidance for setting up dashboards and alerting to track key performance metrics across development, staging, and production.

Quick Start

Enable observability in your Vercel project and follow the setup steps to configure logs, traces, and dashboards.

Frequently Asked Questions about observability

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up full observability for Next.js apps deployed on Vercel?

To set up observability for Next.js on Vercel, enable Drains, OpenTelemetry, and Web Analytics integrations. This provides structured logging, traces, and dashboards to diagnose performance and reliability across development, staging, and production environments.

What is the best way to capture structured logs and traces for Vercel server actions?

The best way to capture structured logs and traces for Vercel server actions is implementing baseline structured logging alongside OpenTelemetry instrumentation. This surfaces errors quickly and provides end-to-end visibility across runtime logs and traces.

Do I need OpenTelemetry to monitor API routes in my Vercel project?

You do not strictly need OpenTelemetry, but it is recommended for end-to-end observability. Combining structured logging baselines for API routes with OpenTelemetry traces ensures comprehensive performance monitoring and quick error diagnosis.

Can I use Vercel Drains to forward logs and set up alerting across different environments?

Yes, you can use Vercel Drains to forward logs and set up alerting across development, staging, and production. Combined with analytics integrations, Drains help track key performance metrics and ensure consistent observability instrumentation.

Why does my Next.js deployment lack visibility into runtime errors and performance metrics?

Your Next.js deployment lacks visibility because it lacks proper observability instrumentation. Implementing structured logging, OpenTelemetry traces, and Vercel Web Analytics provides the necessary dashboards to diagnose performance and reliability issues.