Browser monitoring is a beta AppSignal Labs feature. The
@appsignal/browser package is published under the beta tag on npm, and its
configuration and API may still change between beta releases. Share feedback
in our Discord community.@appsignal/browser, a standalone package that does not depend on any other AppSignal package.
What it collects
Errors
Uncaught exceptions and unhandled promise rejections, with available stack traces, tags, and the route the user was on.
Breadcrumbs
Navigation, clicks, network requests, and console warnings and errors before each error. Collected automatically after
init().Web vitals
LCP, INP, CLS, FCP, and TTFB from real users, aggregated per route and comparable across releases.
Where to find it in AppSignal
The Browser section of your application has two views:- Errors groups front-end errors into issues you can triage. Read more in front-end errors in AppSignal.
- Performance summarizes the five web vitals and breaks them down per route. Read more in front-end performance in AppSignal.
browser namespace, which keeps them out of your back-end error lists and notification settings. For what browser monitoring covers as a feature, see the browser monitoring overview.
Relation to AppSignal for JavaScript
If you use@appsignal/javascript, follow the migration guide when moving to @appsignal/browser. The new SDK has a different API. It collects breadcrumbs and web vitals after init() and reports errors to the browser namespace.
Requirements
- A browser that supports ES2020. The package targets ES2020 and does not ship polyfills.
- CLS and INP require the browser’s
layout-shiftandevent-timingperformance entry types, respectively. The SDK skips either metric when its entry type is unavailable.
Next steps
Generate your snippet
Let AppSignal build the install code with your Front-end API key filled in.
Install the package
Add
@appsignal/browser to your application and start reporting.Configuration options
Every option, its type, and its default.
Filter what you send
Scrub URLs, mask elements, and gate collection on user consent.
Migrate from AppSignal for JavaScript
Map the old API onto the new one.