/backtrace-javascript

Primary LanguageTypeScriptMIT LicenseMIT

Sauce Labs Web SDK

Backtrace's first-class support for JavaScript platforms offers a robust solution for error monitoring and debugging in production web applications, ultimately improving the quality and reliability of your software.

Supported JavaScript frameworks

The @backtrace/browser is suitable for all JavaScript frameworks. Additional integrations are provided to take advantage of the capabilities of different frameworks.

Web SDK Features

Backtrace is an advanced Error Reporting service, with industry-leading features to correlate, explore, manage and resolve production issues. The Backtrace Web SDK directly connects your applications to those advanced features. These SDKs specifically provide the following:

Source map support Source maps can be used to convert minified/transpiled production code into the original source code so error data can contain functions, line numbers, and more. In addition, the report can show the failing function in the your source code.
Advanced breadcrumbs You can include helpful breadcrumbs for tracing application flow. Backtrace will also include useful default breadcrumbs for browsers, like http requests, navigation changes, and more.
PII/Data management Error reports can be scrubbed for PII and otherwise altered before submission.
Attachment support File attachments can be added to error submissions.
Default and dynamic attributes The SDK provides accurate information about the browser and OS by default, including additional attributes specific to each Javascript framework.

You can also add dynamic attributes resolved every time when the library generates a report.

Application Stability Metrics Backtrace SDKs have built in functionality to generate application session and stability metrics like “Error free sessions” in the Backtrace web console.
(Node) Persistent crash data Error data is stored locally when access to the internet is disrupted or the application is not able to send data. Data will be sent on restart.
(Node) Crash and Out of Memory (OOM) detection The Node SDK can submit crash data and out of memory exceptions.
(React) Redux support Backtrace will capture redux actions and states in our breadcrumb system. This allows for tracing the user journey when debugging an error.
(React) Error Boundary support The error boundary component can capture the error and provide options to render a fallback component.
Build system plugins Webpack, Vite and Rollup plugins are provided to support Backtrace integration with common build systems of JavaScript projects. The Backtrace plugins allow:
  • Generation and upload of multiple source maps to Backtrace.
  • Multiple source maps per application.
  • Source content to be included in source maps, simplifying source integration.