<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sentry on Commentary of Takao</title><link>https://takao.blog/es/tags/sentry/</link><description>Recent content in Sentry on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>es</language><copyright>Commentary of Takao</copyright><lastBuildDate>Sun, 12 Jul 2026 04:12:51 +0900</lastBuildDate><atom:link href="https://takao.blog/es/tags/sentry/index.xml" rel="self" type="application/rss+xml"/><item><title>Error Boundaries y logging en frontend</title><link>https://takao.blog/es/web/frontend-error-boundaries-logging/</link><pubDate>Tue, 20 Jan 2026 00:00:00 +0900</pubDate><guid>https://takao.blog/es/web/frontend-error-boundaries-logging/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/frontend-error-boundaries-logging-es.png" alt="Featured image of post Error Boundaries y logging en frontend" /&gt;&lt;p&gt;Error Boundaries en React capturan errores de renderizado para mostrar una UI de fallback. Combinados con logging, permiten monitorear errores en producción.&lt;/p&gt;
&lt;h2 id="error-boundaries-en-react"&gt;Error Boundaries en React
&lt;/h2&gt;&lt;p&gt;Componentes que capturan errores en su subárbol con &lt;code&gt;componentDidCatch()&lt;/code&gt; o &lt;code&gt;static getDerivedStateFromError()&lt;/code&gt;. Reemplazan try/catch para errores de renderizado.&lt;/p&gt;
&lt;h2 id="logging-de-errores"&gt;Logging de errores
&lt;/h2&gt;&lt;p&gt;Captura errores en Error Boundaries y envíalos a un servicio: Sentry, LogRocket, Datadog. Incluye stack trace, props, y contexto del usuario.&lt;/p&gt;
&lt;h2 id="windowonerror-y-unhandledrejection"&gt;window.onerror y unhandledrejection
&lt;/h2&gt;&lt;p&gt;Captura errores no manejados globalmente. &lt;code&gt;window.onerror&lt;/code&gt; para errores síncronos. &lt;code&gt;unhandledrejection&lt;/code&gt; para promesas rechazadas.&lt;/p&gt;</description></item></channel></rss>