observability

Configure Vercel runtime logs, drains, and analytics for Next.js observability.

246|42|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/vercel/vercel-plugin --skill observability-vercel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability
Source: https://github.com/vercel/vercel-plugin/tree/main/skills/observability
Command: npx skills add https://github.com/vercel/vercel-plugin --skill observability-vercel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Improve application observability by guiding the implementation and use of Vercel's runtime logs, drains, web analytics, and performance tools.

Core Features & Use Cases

  • Guidance on enabling runtime logs, structured logging, and error reporting across Next.js apps and serverless functions.
  • Instructions for configuring Drains to export logs, traces, and analytics to external platforms, and for integrating Web Analytics and Speed Insights.
  • Real-world scenarios for debugging performance issues, tracking user experience, and improving reliability using observability best practices.

Quick Start

Start by enabling structured logging and instrumentation as described above, then verify observability via dashboards and logs.

Frequently Asked Questions about observability

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

FAQPage Schema
How do I set up structured logging and observability for Next.js serverless functions?

Enable structured logging for Next.js serverless functions by configuring Vercel runtime logs and applying instrumentation patterns. This provides error tracking and performance debugging capabilities across your deployed applications.

What is a Vercel log drain and when do I need to configure it?

A Vercel log drain exports runtime logs, traces, and analytics to external platforms. Configure drains when you need to aggregate observability data for real-user monitoring and debugging in an external system.

Can I integrate OpenTelemetry with Vercel runtime logs?

Yes, OpenTelemetry integration is supported by applying instrumentation to your Next.js apps. This enables tracing and exporting observability data via configured drains to external platforms.

How do I track real-user monitoring and performance metrics in Vercel?

Track real-user monitoring by integrating Vercel Web Analytics and Speed Insights into your application. These tools capture user experience data and performance metrics to debug reliability and optimization issues.

What's the best way to debug performance issues using Vercel observability tools?

Debug performance issues by leveraging Vercel runtime logs alongside Web Analytics and Speed Insights. This combination pinpoints bottlenecks and tracks real-user experience metrics across serverless functions.

Does this observability setup work for both Next.js apps and serverless functions?

Yes, Vercel observability tools support error reporting, structured logging, and performance monitoring across both Next.js apps and serverless functions. Implementation applies best-practice instrumentation patterns uniformly across environments.