Docs

Install the FaultLens browser SDK

Install the beta browser SDK when a web application needs client-side error capture and browser diagnostics context.

These docs are crawlable public guidance for current and beta FaultLens integration paths. Keep project API keys out of source control and avoid sending secrets in custom context.

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.

  • Use the tenant ingest host provided for your workspace.
  • The beta browser SDK sends events to POST /api/events/ingest.
  • Sensitive query-string values are redacted before sending.

Example

Use this as a starting point and adjust environment, release, endpoint, and project identifiers for your workspace.

npm install @faultlenshq/browser@beta

import { FaultLens } from '@faultlenshq/browser';

const faultLens = new FaultLens({
  apiKey: 'YOUR_FAULTLENS_API_KEY',
  projectId: 'YOUR_PROJECT_ID',
  environment: 'production',
  endpoint: 'https://TENANT-SLUG.staging.faultlens.in',
  release: 'web@1.0.0',
  platform: 'browser'
});

faultLens.captureError(new Error('Example browser error'));
FAQ

Common questions

What is FaultLens?

FaultLens is a production issue diagnosis and error monitoring platform for SaaS engineering teams. It helps teams connect errors, releases, environments, and issue context so they can investigate production failures faster.

Who is FaultLens for?

FaultLens is for SaaS engineering teams that need a focused way to diagnose production errors, connect them to releases and environments, and keep issue context in one investigation workflow.

Is FaultLens an error monitoring tool?

Yes. FaultLens includes error monitoring, but its positioning is narrower than a full observability platform: it focuses on production issue diagnosis and the context needed to act on failures.

How is FaultLens different?

FaultLens documentation focuses on sending useful production error context into a diagnosis workflow rather than documenting a broad observability stack.

Which SDKs does FaultLens support?

FaultLens has a public .NET SDK package named FaultLens.SDK and released JavaScript SDK packages for browser, Angular, and React integrations under the @faultlenshq npm scope. The current JavaScript packages are beta releases.