error-tracking-hono

Integrate PostHog error tracking into Hono applications to capture exceptions.

58|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/PostHog/skills --skill error-tracking-hono
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: error-tracking-hono
Source: https://github.com/PostHog/skills/tree/main/skills/posthog/all/skills/error-tracking-hono
Command: npx skills add https://github.com/PostHog/skills --skill error-tracking-hono

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Helps Hono-based applications gain visibility into runtime errors by sending exceptions and metrics to PostHog for monitoring, alerting, and triage.

Core Features & Use Cases

  • Automatic error capture using PostHog's Node.js integration for Hono apps.
  • Manual error capture at error boundaries to ensure coverage of edge cases.
  • Monitoring, alerts, and issue management via PostHog to streamline incident response.

Quick Start

Install the PostHog Node.js library in your Hono project, initialize the client with your project token and host, and attach an error handler to capture exceptions.

Frequently Asked Questions about error-tracking-hono

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

FAQPage Schema
How do I track runtime errors in a Hono Node.js application?

Tracking runtime errors in a Hono Node.js application involves integrating PostHog to capture exceptions and send metrics for monitoring, alerting, and triage. You install posthog-node, initialize the client, and attach an error handler to automatically capture exceptions.

What is needed to set up PostHog error tracking for Hono apps?

Setting up PostHog error tracking for Hono apps requires installing the posthog-node library, configuring environment variables for the project token and host, and enabling autocapture and source map uploads in your application.

Can I manually capture exceptions at error boundaries in Hono?

Yes, you can manually capture exceptions at error boundaries in Hono to ensure coverage of edge cases. This works alongside automatic error capture to provide comprehensive monitoring and issue management via PostHog.

Does PostHog error tracking work with Hono-based Node.js services?

Yes, PostHog error tracking works with Hono-based Node.js services by applying PostHog's Node.js integration to reliably collect errors, send alerts, and track issues for incident response.

How do I monitor and alert on exceptions captured from my Hono app?

You monitor and alert on exceptions captured from your Hono app by sending them to PostHog, which centralizes error collection and provides monitoring, alerting, and issue management to streamline incident response.