Installation
Install the telemetry package:
The package publishes separate entry points for browser, Node, and shared utilities:
#Optional peers
@angular/core and posthog-js are optional peer dependencies.
Install @angular/core when you use the browser Angular provider and service:
Install posthog-js only when you use direct browser PostHog delivery through posthogKey. New integrations should prefer sink or endpoint, because those keep delivery inside your application's analytics boundary.
#Browser entry point
Browser telemetry is opt-in. Calling provideThreadplaneTelemetry({ enabled: true, ... }) is what activates capture.
#Node entry point
Node helpers live under @threadplane/telemetry/node.
Node telemetry respects the environment opt-out variables documented in Privacy and Opt-Out.
#Next steps
- Browser Telemetry - configure an Angular provider and runtime sink.
- Node Telemetry - capture helpers for lifecycle and stream events.
- Events - event names and payload shapes.