This is a Beta implementation, which means:
- This feature is not yet available for all users.
- Although you should expect few changes, the API may change before public release.
Although this is a beta version, we already use it to monitor errors right here on AppSignal.com! We can say with high confidence that you can safely start using this in your frontend apps today.
- Error handling
- Creating and Using a Span
Before you begin, you'll need to locate your Push API key. Finding this is easy - look for the "Push and deploy" section of your App settings page. You'll be able to find your API key under the "Front-end error monitoring". Once you have your key, follow the instructions under the Installation section to use it in your application.
If, for any reason, pushing an error to the API fails (e.g. if the network connection is not working), the
Span object that it belongs to is placed in the retry queue. By default, requests are retried 5 times with exponential backoff. If the request succeeds, the corresponding
Span is removed from the queue. Once the retry limit has been reached, any
Spans left in the queue are discarded.
No caching is currently implemented for the retry queue, meaning that if a
Span is in the queue when the user navigates away from your aplication, that
Span will also be discarded.