Skip to main content
The @appsignal/javascript plugin for automatically adding a breadcrumb on every network request. Works with both XMLHttpRequest and fetch.

Installation

Add the @appsignal/plugin-breadcrumbs-network and @appsignal/javascript packages to your package.json. Then, run yarn install/npm install. You can also add these packages to your package.json on the command line:

Usage

plugin options

The plugin can be initialized with the following options:
ParamTypeDescription
xhrEnabledBoolean(optional) A boolean value representing whether the plugin should bind to XMLHttpRequest. Defaults to true.
fetchEnabledBoolean(optional) A boolean value representing whether the plugin should bind to fetch. Defaults to true.