Hono error tracking installation
- 1
Install the package
RequiredInstall the PostHog Node.js library using your package manager:
- 2
Initialize PostHog
RequiredInitialize the PostHog client with your project token:
Node.js - 3
Send an event
RecommendedOnce installed, you can manually send events to test your integration:
Node.js - 4
Exception handling example
RequiredHono uses
app.onErrorto handle uncaught exceptions. You can take advantage of this for error tracking.Remember to export your project token as an environment variable.
index.ts - 5

