Angular Error Tracking for PostHog

•
37
•

Integrates PostHog error tracking into Angular applications using modern best practices and standalone component patterns.

This skill provides specialized guidance for implementing PostHog error tracking within Angular environments, ensuring robust observability and debugging capabilities. It assists developers in setting up a singleton PosthogService, configuring environment variables securely, and enabling exception autocapture. By following modern Angular patterns such as the inject() function and standalone components, the skill helps capture detailed stack traces with source maps and manages manual error reporting within specific application boundaries.

Características Principales

01Automated exception autocapture and manual captureException patterns
0237 GitHub stars
03Source map upload configuration for unminified stack trace resolution
04Modern Angular integration using the inject() function and standalone components
05Support for error boundaries and issue assignment within the PostHog dashboard
06Secure environment variable management for API keys and host URLs

Casos de Uso

01Implementing global error monitoring in a new Angular standalone application
02Configuring source maps to debug production issues directly in PostHog
03Adding manual error capture to specific catch blocks or error boundaries