Breadcrumbs Come to Node.js`
The Sentry team has released a new feature called breadcrumbs for Node.js, which provides a trail of events leading up to a captured error, adding critical context that can help with debugging. The implementation was challenging due to Node's asynchronous nature and cooperative concurrency model, but the result is an API more closely resembling the browser JavaScript client, with automatic breadcrumb support joining clients in other languages. To get started, users can install the latest version of Raven-node and initialize the client library with automatic breadcrumbs enabled, which will record a handful of useful breadcrumbs by default, including HTTP requests, log statements, and PostgreSQL queries. Users can also record custom breadcrumbs to track major steps in their request handling pipeline or associate data that's particularly useful for debugging. The Node client library's middleware for Express error monitoring ensures that breadcrumbs captured in route handlers or middleware are associated with the correct request. The Sentry team is seeking feedback and suggestions on how to improve and expand the feature, with plans to tie automatic breadcrumbs into more database drivers and enable them by default in the future.