logs-nextjs

Official

Instrument Next.js apps with PostHog logs.

AuthorPostHog
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Captures and centralizes Next.js logs in PostHog using OpenTelemetry to improve observability and debugging.

Core Features & Use Cases

  • OpenTelemetry-based log ingestion from Next.js apps to PostHog.
  • Easy instrumentation integration for Next.js projects (including Next.js 15.3+).
  • Use case: correlate backend logs with frontend sessions via Session Replay.

Quick Start

Configure your Next.js project to emit OpenTelemetry logs to PostHog using the provided instrumentation setup.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: logs-nextjs
Download link: https://github.com/PostHog/skills/archive/main.zip#logs-nextjs

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.