Sentry

Sentry

Sentry.io is the industry-standard JavaScript error monitoring platform. The Sentry SDK captures unhandled exceptions, performance spans, and breadcrumb trails and uploads error reports to Sentry's cloud platform for engineering teams to investigate and resolve bugs.

Overview

Sentry is a widely used application error monitoring and performance observability platform developed by Functional Software, Inc. Engineering teams integrate the Sentry SDK into their web applications, mobile apps, and backend services to capture unhandled JavaScript exceptions, track performance degradation, and diagnose production bugs with contextual breadcrumb trails. Sentry is used by over 100,000 organizations ranging from individual developers to large enterprises.

On websites and web apps, the Sentry Browser SDK (@sentry/browser, @sentry/nextjs, @sentry/react, etc.) is either bundled into the application's JavaScript bundle or loaded from Sentry's CDN (browser.sentry-cdn.com). It instruments the JavaScript runtime passively — collecting diagnostic data only when errors or performance thresholds occur, not on every user interaction.

What This Script Does

The Sentry Browser SDK provides runtime error and performance monitoring:

JavaScript exception capture: The SDK registers global error handlers (window.onerror, unhandledrejection) to catch every uncaught exception and Promise rejection. For each error, Sentry captures the error type and message, a symbolicated (source-mapped) stack trace, the browser user agent, OS details, screen resolution, the current URL, and recent network requests. This data is assembled into an error event and sent to Sentry's ingestion API.

Breadcrumb recording: Before any error is sent, Sentry has been silently recording a breadcrumb trail — a rolling log of the last ~100 events: page navigations, XHR/fetch requests with response status codes, console.log calls, and DOM click interactions. Breadcrumbs are held in memory and transmitted only when an error event fires, giving developers context about the sequence of actions that led to the crash.

Performance tracing: When performance monitoring is enabled (tracesSampleRate), the SDK creates distributed trace spans around page loads (Navigation Timing API), resource fetches, and XHR/fetch calls. These traces are sampled (typically 1–10% of sessions) and transmitted to Sentry's performance dashboard.

Session tracking and crash rate reporting: Sentry uses sessionStorage (not persistent cookies) to maintain a session identifier for the duration of the browser tab session. This session ID tracks whether the session ended cleanly or with an unhandled error, enabling Sentry to report session-level crash rates (e.g., "2.3% of sessions this week ended in a crash"). The session identifier is scoped to the tab and cleared when the tab is closed.

Optional user context: Developers may explicitly call Sentry.setUser() to attach a user identifier, email, or username to error events. This is an opt-in developer configuration — Sentry does not collect user identity information autonomously. When user context is set, it appears in Sentry's issue detail view alongside the error.

Release and environment tracking: Each Sentry initialization includes a release version string and environment (production, staging). Errors are associated with specific releases, enabling teams to identify which deployment introduced a regression.

Consent & Compliance

Sentry is a functional application reliability tool with minimal privacy footprint:

  • GDPR: Sentry collects technical metadata (IP addresses, user agents, stack traces) that may constitute personal data. The lawful basis is legitimate interests under Article 6(1)(f) — diagnosing and fixing defects that directly harm users is a legitimate interest that does not require consent. Sentry offers EU data residency (ingestion via de.sentry.io), is certified under the EU-US Data Privacy Framework, and provides GDPR-compliant DPA terms.
  • ePrivacy Directive: Sentry does not set persistent cookies. The sessionStorage identifier used for crash rate reporting is considered a strictly necessary functional mechanism — it does not enable cross-site tracking, advertising, or behavioral profiling. No ePrivacy consent is required.
  • CCPA: Sentry processes technical diagnostic data as a service provider. Error data is not used for advertising or sold to third parties. Sentry's service provider status means this is not a "sale" under CCPA.
  • Sensitive data: Applications that handle sensitive data (health information, financial data, authentication credentials) should configure Sentry's beforeSend hook and server-side data scrubbing to strip personal data from error payloads before transmission.

Should You Block This Without Consent?

No. Sentry is a functional error monitoring tool that supports application reliability. It does not perform marketing tracking, set persistent cookies, or build behavioral profiles. It operates under legitimate interests and can load without analytics or marketing consent.

Is Sentry GDPR compliant?

Sentry typically loads functional trackers, which are not strictly necessary for your site to work. Under the GDPR and the ePrivacy Directive, non-essential cookies and trackers must stay blocked until a visitor gives clear opt-in consent. So Sentry can be fully GDPR compliant, but only if your site holds its scripts until consent is granted and lets visitors decline just as easily. Compliance depends on how your site loads Sentry, not on Sentry itself.

Visit website

Consent Categories

Also Known As

SentrySentry.ioJavaScript error monitoringSentry SDKerror trackingperformance monitoringsentry-browser

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (2)

sentry.ioFunctional

sentry.io is a functional domain operated by Sentry, used to run site features like chat, video, embeds, and preferences.

browser.sentry-cdn.comFunctional

browser.sentry-cdn.com is a functional domain operated by Sentry, used to run site features like chat, video, embeds, and preferences.

Frequently Asked Questions

Related Vendors

Branch
Branch
Mobile attribution and deep linking platform used by apps with a web presence. The Branch.io web SDK tracks campaign clicks and attributes app installs back to the originating web touchpoint. Also enables deferred deep linking so that users who install an app after clicking a web link are routed to the correct in-app content.
ChurnZero
ChurnZero
ChurnZero scripts embedded in SaaS applications collect product usage events, feature engagement data, and session activity to compute customer health scores and churn risk indicators. Data is transmitted to ChurnZero servers to power customer success workflows and automated interventions.
AskNicely
AskNicely
AskNicely scripts embed NPS and CSAT survey intercepts on websites and trigger feedback requests following purchases or service interactions. Scripts identify the current user, determine survey eligibility based on configured rules, and transmit survey responses to AskNicely servers.
Twitch
Twitch
Twitch embedded stream players and widgets load on third-party websites to display live or recorded streams. Scripts set cookies and send events to Twitch servers to track viewer engagement, serve advertising against embedded streams, and attribute ad impressions to stream inventory.
Aisera
Aisera
Aisera embeds AI-powered virtual agent and chatbot widgets on enterprise support portals and service desk pages. Scripts load conversational AI interfaces for IT and customer service automation; they transmit query text and session identifiers to Aisera cloud services to generate responses.
Hubilo
Hubilo
Hubilo embeds event registration flows, session schedules, and live stream players on event and conference websites. Scripts process attendee registration data, manage session access tokens, and transmit engagement metrics to Hubilo servers for virtual event analytics and reporting.

Manage consent for Sentry

ConsentStack automatically detects and manages Sentry trackers so your site stays compliant with global privacy regulations.