Improve backtrace path matching
Added
-
Allow functions as backtrace matchers. Alongside regular expressions, you can also provide custom functions to match and replace paths in the backtrace:
JavaScriptconst appsignal = new Appsignal({ // ... matchBacktracePaths: [(path) => { if (path.indexOf("/bundle/") !== -1) { return "bundle.js" } }] })
The function must take a backtrace line path as an argument. When the function returns a non-empty string, the string will be used as the path for that backtrace line. Otherwise, the path will be left unchanged.
Fixed
-
Fix matching on backtrace paths containing spaces.
When using
matchBacktracePaths
, when a backtrace line path contains a space, it will now match correctly against the whole path.
View the AppSignal JavaScript javascript v1.6.1 changelog for more information.