Changelog

Improving AppSignal, one deploy at a time.

Jul 03, 2024

Add span override prop to React error boundaries

JavaScript@appsignal/react@1.0.26

Added

  • Add a span override prop to the ErrorBoundary and LegacyBoundary components.

    Pass an override function to the error boundary component in order to set properties, such as tags, params or breadcrumbs, in the error span that will be sent to AppSignal.

    The override function is only called when an error is about to be sent. This allows you to only perform expensive computation to add information to the error when an error will actually be reported.

    When defined within a component, the function should be memoized with useCallback to prevent unnecessary re-renders:

    jsx
    export default const SomeComponent = ({ someProp }) => { const override = useCallback((span) => { span.setTags({ someProp }) }, [someProp]); return ( <ErrorBoundary override={override}> { /* Your component here */ } </ErrorBoundary> ) }
    jsx
    export default const SomeComponent = ({ someProp }) => { const override = useCallback((span) => { span.setTags({ someProp }) }, [someProp]); return ( <ErrorBoundary override={override}> { /* Your component here */ } </ErrorBoundary> ) }

View the AppSignal JavaScript react v1.0.26 changelog for more information.

Nov 06, 2023

Fix transport selection in Electron

JavaScript@appsignal/javascript 1.3.27

Attempt to import the http and https module dynamically. This fixes an issue with Electron, which does not expose the https module.

Emit a warning if NodeTransport is used but the https module fails to be imported.

This allows Electron users to use the AppSignal integration alongside with the electron-fetch library.

See the @appsignal/javascript 1.3.27 changelog for more information.

Aug 24, 2022

Changelog update 24 August, 2022

JavaScript@appsignal/react@1.0.21

(changelog)

  • Bump peer dependency to allow React 18.2.

@appsignal/plugin-window-events@1.0.18: (changelog)

  • Fix the behaviour of the unhandled promise rejection handler when the rejection event contains an Error.

@appsignal/core@1.1.18: (changelog)

  • Fix isError so that it does not throw an error when the given value is not an object.
Mar 17, 2022

Changelog update 17 March, 2022

JavaScript@appsignal/javascript@1.3.23

Ignore non error objects when setting errors in spans. See our changelog for more information.

@appsignal/preact@1.0.18:

Remove error type check on ErrorBoundary. See our changelog for more information.

@appsignal/react@1.0.19:

Remove error type check on ErrorBoundary. See our changelog for more information.

@appsignal/cli@1.1.16:

Add demo command. See our changelog for more information.

Jan 12, 2022

Changelog update 12 January, 2022

All packages have been released with bundled sourcemaps. See our changelog for more information.

@appsignal/preact@1.0.16: In the Preact ErrorBoundary, check if the thrown object is an error. This prevents an error from being thrown when the previously thrown error was not an error. Scenarios like throw new Event("my event") are now ignored. See our changelog for more information.

Jan 11, 2022

Changelog update 11 January, 2022

JavaScript@appsignal/react@1.0.16

In the React ErrorBoundary, check if the thrown object is an error. This prevents an error from being thrown when the previously thrown error was not an error. Scenarios like throw new Event("my event") are now ignored. See our changelog for more information.

@appsignal/plugin-breadcrumbs-console@1.1.21: Serialise circular references in console arguments, omitting the cyclic value instead of throwing an error. See our changelog for more information.

@appsignal/plugin-window-events@1.0.15: Serialise circular references in window errors, omitting the cyclic value instead of throwing an error. See our changelog for more information.

Start your free trial

Don’t let the bad bugs bite. Try AppSignal for free.

AppSignal offers a 30-day free trial, no credit card is required. All features are available in all plans. Start monitoring your application in just a few clicks!