Span whenever an error is caught by the library. This allows you to gather information that is useful for reproducing tricky-to-debug errors by re-tracing a user’s path through your application.
Usage
By default, no breadcrumbs are tracked, but it’s really easy to track your own. Alternatively, you can use one of our breadcrumb plugins to automatically collect some types of breadcrumbs. Wherever an interesting event, operation or state change occurs in your app, you can leave a breadcrumb like so:Span is passed to appsignal.send(), the current list of breadcrumbs is added to the current Span and sent to the server. The list of breadcrumbs is then emptied.
Breadcrumb Options
| Option | Type | Description |
|---|---|---|
| category | String | Category to label the event under |
| action | String | Contextual information related to the event |
| message | String | (optional) A log message or other string to send to AppSignal |
| metadata | Object<String, String> | (optional) An object of metadata related to the event |