Before you start
You need a FaultLens workspace, a project API key, and the correct ingest host for your tenant or validation environment.
The SDKs are intended to capture application errors and diagnostics context without interrupting the host application flow.
- The beta Angular package is published for Angular 21 applications.
- Use FaultLensService for explicit capture or context updates.
- Avoid placing secrets in custom context or tags.
Example
Use this as a starting point and adjust environment, release, endpoint, and project identifiers for your workspace.
npm install @faultlenshq/angular@beta @faultlenshq/browser@0.1.0-beta.3
import { FaultLensModule } from '@faultlenshq/angular';
FaultLensModule.forRoot({
apiKey: 'YOUR_FAULTLENS_API_KEY',
projectId: 'YOUR_PROJECT_ID',
environment: 'production',
endpoint: 'https://TENANT-SLUG.staging.faultlens.in',
release: 'web@1.0.0',
platform: 'angular'
});
Related setup
These pages explain adjacent setup work that makes production diagnosis more useful after events start arriving.