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.

Visit website

Consent Categories

Functional

Also Known As

SentrySentry.ioJavaScript error monitoringSentry SDKerror trackingperformance monitoringsentry-browser

Industries

Programming and Developer SoftwareComputers Electronics and Technology

Tracked Domains (2)

sentry.ioFunctional
browser.sentry-cdn.comFunctional

Frequently Asked Questions

Does Sentry require visitor consent to load?

No. Sentry is a functional error monitoring tool operating under legitimate interests under GDPR Article 6(1)(f). It uses sessionStorage — not persistent cookies — for crash rate tracking, performs no marketing profiling, and can load without consent.

What information does the Sentry SDK collect?

Sentry captures unhandled JavaScript exceptions with symbolicated stack traces, browser and OS metadata, sampled performance traces, and a breadcrumb log of recent navigations and network requests. User context is only attached if developers explicitly call Sentry.setUser().

How does ConsentStack treat Sentry?

ConsentStack classifies Sentry as functional and never blocks it based on consent state. Because Sentry supports application reliability without persistent cookies or marketing tracking, ConsentStack permits it to load freely as a strictly necessary tool for site operation.

Related Vendors

Google Maps
Google Maps
Google Maps is the dominant web mapping service used for embedded maps and location features on websites. Scripts load interactive map tiles, geocoding, and Places API functionality through the Maps JavaScript API. May set cookies to remember map preferences and manage API quota.
Google Search
Google Search
Google Search appears on websites through the Programmable Search Engine, enabling custom site-specific search functionality. Scripts load the search widget from Google's servers to render search bars and display results within the host website. Sends search queries to Google's index and may set cookies for search personalization and query history.
Google
Google
Google is the dominant provider of web analytics, advertising, and infrastructure tools. Scripts like Google Analytics, Tag Manager, Ads, and reCAPTCHA collect behavioral data, manage tag firing, serve targeted ads, and detect bots. Sets persistent cookies to track users and correlate activity across sites.
Microsoft Teams
Microsoft Teams
Microsoft Teams is a workplace communication and collaboration platform that can be embedded on websites for chat, meetings, and document sharing. Embedded widgets load from Microsoft's servers to enable real-time messaging, video calls, and file collaboration. Sets authentication and session cookies to verify participant identity and maintain connection state.
Apple Maps JS
Apple Maps JS
Apple Maps JS is Apple's JavaScript mapping framework for embedding interactive maps on websites. Scripts load map tiles, location pins, and routing data from Apple's MapKit servers to render navigable maps within web pages. Requires a MapKit JS token for authentication but does not set tracking cookies or collect behavioral analytics data.
Apple Business Chat
Apple Business Chat
Apple Business Chat enables direct customer messaging between websites and Apple's Messages app. Scripts load chat buttons and conversation interfaces that connect visitors to business support agents through iMessage. Sets minimal session cookies to maintain conversation context but does not track browsing behavior or collect analytics data.

Manage consent for Sentry

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