What are breadcrumbs, and what do they tell me about an error?

Breadcrumbs are the trail the Sentry SDK records before an error: clicks, network requests, page changes and console messages. They show what the visitor did and what the page asked the server just before it broke. Monitoring keeps the newest 30 with each error, with messages and URLs redacted, and drops their other data.

Last updated 26 November 2026. By Paul Badarau.

Lena, a fictional developer, gets a new issue from her yoga studio's booking page: TypeError: Cannot read properties of undefined (reading 'price'). The stack points at the code that draws a class card, which looks fine. She opens the issue's breadcrumbs, oldest first:

  1. navigation, with no message.
  2. ui.click, button.week-next.
  3. fetch, /api/classes, status 500.
  4. console, Class list empty, using cache.

The request for next week's classes failed, the page fell back to an empty cache, and the card code read a price from a class that was not there. The fix is in the error handling for that request, not in the card.

With @sentry/browser, breadcrumbs come by default. Each kind answers a different question:

  • Clicks and key presses name the element as a selector, so you know which control the visitor used.
  • Fetch and XHR requests keep the URL, with query values replaced, and the status code. The HTTP method is kept only when the SDK put it in the message. A 4xx or 5xx just before the error is often the cause.
  • Console messages keep their text, with emails, tokens and card numbers redacted.
  • Your own steps go in with Sentry.addBreadcrumb({ category: 'booking', message: 'Chose class 18:00' }).

Monitoring keeps the time, category, level, type, message, URL and status code of each breadcrumb, and drops everything else in it. A page change records its from and to addresses in that other data, so it shows as navigation with no message, as in Lena's list. Anything you put in the data of your own breadcrumbs is dropped too, so write what you need into message, which keeps up to 512 characters. The SDK holds up to 100 breadcrumbs by default and Monitoring stores the newest 30. Breadcrumbs travel only with an error: if nothing fails, they are never sent.

The product page for this is Monitoring.

Start your 14-day free trial