Hono error tracking installation
- 1
Install PostHog Node.js SDK
RequiredError tracking enables you to track, investigate, and resolve exceptions your customers face. Start by installing the
posthog-node
package using your package manager:Terminal - 2
Exception handling example
RequiredHono uses
app.onError
to handle uncaught exceptions. You can take advantage of this for error tracking. Remember to export your project API key as an environment variable.index.ts - 4