error-tracking-go

Capture and centralize Go application errors in PostHog with customizable fingerprints.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Go applications often struggle to capture and report runtime errors in a structured, searchable way. This Skill provides straightforward integration with PostHog's error tracking to capture, group, and alert on errors within Go apps.

Core Features & Use Cases

  • Automatic error capture with the PostHog Go SDK, including optional slog integration for logs.
  • Manual exception capture with customizable fingerprints and metadata.
  • Configuration and observability guidance for error monitoring across services and environments.

Quick Start

Initialize the PostHog client in your Go project and enqueue a sample exception to verify error tracking.

Frequently Asked Questions about error-tracking-go

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

FAQPage Schema
How do I track Go application errors with PostHog?

You can track Go application errors by initializing the PostHog Go SDK and using automatic capture or manual exception logging to centralize error monitoring and alerting across your services.

Can I use slog integration for Go error tracking in PostHog?

Yes, PostHog error tracking supports optional slog integration for Go apps, allowing you to automatically capture structured log errors and centralize them for reliable monitoring.

How do I group custom Go exceptions in PostHog?

You can group custom Go exceptions by using manual exception capture with customizable fingerprints, ensuring similar runtime errors are grouped together logically for accurate alerting and monitoring.

What do I need to configure before capturing Go errors in PostHog?

You need the PostHog Go SDK, a project token, and endpoint configuration to start capturing errors. Environment variables are recommended for securely storing keys and host URLs across environments.

Does PostHog error tracking work for Go CLI applications?

Yes, PostHog error tracking applies to both Go services and CLI applications, providing structured error reporting and observability for reliable monitoring across different types of Go apps.