Ian Obermiller

Part time hacker, full time dad.

Bundle Size Comparison of JS Error Logging Services

Posted 2020-04-29

So, you've optimized your JavaScript bundle into a lean and mean package, but now you need to add error logging so that you are aware of errors that users experience in production. How do the major JavaScript error logging services stack up in terms of bundle size?

This is of course a naïve comparison, as many services provide other functionality as well, like session replay. But if you are just looking for basic error reporting while keeping bundle size small, knowing how much these libraries will increase your payload matters.

The methodology can be found in the Source column of the table. For most providers, I checked the docs for a client-side NPM bundle and popped that into Bundlephobia. If the provider does not have an NPM module, I curled the JS directly.

NameMin+Gzip kBSourceUpdated
CatchJS1.8
curl https://cdn.catchjs.com/catch.js | gzip | wc -c
4/29/2020
Honeybadger5.4https://bundlephobia.com/result?p=honeybadger-js@2.2.14/29/2020
LogRocket8.5https://bundlephobia.com/result?p=logrocket@1.0.74/29/2020
Bugsnag11.7https://bundlephobia.com/result?p=@bugsnag/js@7.0.04/29/2020
Raygun17.8https://bundlephobia.com/result?p=raygun4js@2.18.34/29/2020
Sentry17.9https://bundlephobia.com/result?p=@sentry/browser@5.15.54/29/2020
Rollbar21.2https://bundlephobia.com/result?p=rollbar@2.15.24/29/2020

If you'd like to contribute to this data, please send a PR!