Search the docs

↑↓ to move · Enter to open · Esc to close

Type to search every page. Results are grouped by section.

TalariaDocs
Dashboard

Docs › SDKs

View as Markdown
On this page

JavaScript

Install @newtalaria/browser 0.6.1 and send a first browser event.

@newtalaria/browser 0.6.1 is the official browser SDK. React, Next.js, and Node.js are guides under this platform.

Install#

npm install @newtalaria/browser

Initialise#

import { Talaria } from '@newtalaria/browser';
 
Talaria.init({
  apiKey: 'tal_pk_prod_nz1_…',
  release: '1.4.2',
  minLevel: 'warning',
});

Use a publishable key in the browser. The API key decides the environment. Tracing, analytics, heatmaps, and session replay follow project settings. Leave url unset on Talaria Cloud.

Verify#

Talaria.captureException(new Error('Talaria test error'));

Run this once, then open Issues in the dashboard. The test error shows as a new issue in the key's environment. Nothing there? See troubleshooting.

Next#

See fail-safe, configuration, errors, and tracing.

Was this helpful?